Module: LinkHelper

Defined in:
lib/watir_helper/link_helper.rb

Instance Method Summary collapse

Instance Method Details

Click a link.



6
7
8
9
# File 'lib/watir_helper/link_helper.rb', line 6

def click_link(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.link(property.intern,propertyvalue).click
end

Click a link ,after clicking which a pop-up will come.



12
13
14
15
# File 'lib/watir_helper/link_helper.rb', line 12

def click_link_with_popup(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.link(property.intern,propertyvalue).click_no_wait
end

Check whether a link exists or not.



24
25
26
27
# File 'lib/watir_helper/link_helper.rb', line 24

def exists_link(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.link(property.intern,propertyvalue).exists?
end

Highlight or Flash a link.



18
19
20
21
# File 'lib/watir_helper/link_helper.rb', line 18

def flash_link(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.link(property.intern,propertyvalue).flash
end