Module: TableHelper
- Defined in:
- lib/watir_helper/table_helper.rb
Instance Method Summary collapse
-
#exists_table(property, propertyvalue) ⇒ Object
Check whether a table exists or not.
-
#flash_table(property, propertyvalue) ⇒ Object
Highlight or Flash a table.
-
#return_table_contents(property, propertyvalue) ⇒ Object
Return the table contents.
Instance Method Details
#exists_table(property, propertyvalue) ⇒ Object
Check whether a table exists or not.
12 13 14 15 |
# File 'lib/watir_helper/table_helper.rb', line 12 def exists_table(property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.table(property.intern,propertyvalue).exists? end |
#flash_table(property, propertyvalue) ⇒ Object
Highlight or Flash a table.
6 7 8 9 |
# File 'lib/watir_helper/table_helper.rb', line 6 def flash_table(property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.table(property.intern,propertyvalue).flash end |
#return_table_contents(property, propertyvalue) ⇒ Object
Return the table contents.
18 19 20 21 |
# File 'lib/watir_helper/table_helper.rb', line 18 def return_table_contents(property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.table(property.intern,propertyvalue).to_a end |