Class: Gametel::Views::CheckBox
- Defined in:
- lib/gametel/views/checkbox.rb
Instance Attribute Summary
Attributes inherited from View
Instance Method Summary collapse
Methods inherited from View
#initialize, #raw_view, #view_class
Constructor Details
This class inherits a constructor from Gametel::Views::View
Instance Method Details
#checked? ⇒ Boolean
4 5 6 7 8 9 |
# File 'lib/gametel/views/checkbox.rb', line 4 def checked? result = platform.is_check_box_checked locator[:index] if locator[:index] result = platform.is_check_box_checked locator[:text] if locator[:text] result = is_check_box_checked_by_id locator[:id] if locator[:id] result.body == "true" end |