Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

require 'rubygems'
require 'selenium-webdriver'

require_relative "../module/DriverUtility"

class Attachment
include DriverUtility

def initialize(driver)
@driver = driver
end

def addFileInputName
return "addFile"
end

def addAttachmentButton
return "button[name='addAttachment']"
end

def attachmentLabel
return ".attachments-wrapper h5"
end

def nthViewAttachmentButton(n)
return ".attachments tr:nth-of-type(" + (n + 1).to_s + ") a"
end

def nthDeleteAttachmentButton(n)
return ".attachments tr:nth-of-type(" + (n + 1).to_s + ") button"
end

end