Module: LinkHelper
- Defined in:
- lib/watir_helper/link_helper.rb
Instance Method Summary collapse
-
#click_link(property, propertyvalue) ⇒ Object
Click a link.
-
#click_link_with_popup(property, propertyvalue) ⇒ Object
Click a link ,after clicking which a pop-up will come.
-
#exists_link(property, propertyvalue) ⇒ Object
Check whether a link exists or not.
-
#flash_link(property, propertyvalue) ⇒ Object
Highlight or Flash a link.
Instance Method Details
#click_link(property, propertyvalue) ⇒ Object
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_link_with_popup(property, propertyvalue) ⇒ Object
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 |
#exists_link(property, propertyvalue) ⇒ Object
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 |
#flash_link(property, propertyvalue) ⇒ Object
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 |