Class: AePageObjects::Checkbox
- Defined in:
- lib/ae_page_objects/elements/checkbox.rb
Constant Summary
Constants included from Node::Methods
Node::Methods::METHODS_TO_DELEGATE_TO_NODE
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#__full_name__, #__name__, #browser, #document, #full_name, #initialize, #name, #to_s, #using_default_locator?, #window
Methods included from Dsl
#collection, #element, #form_for, #inherited
Methods included from InternalHelpers
Methods included from Node::ClassMethods
#current_url, #current_url_without_params
Methods included from AePageObjects::Concerns::Staleable
Methods included from AePageObjects::Concerns::LoadEnsuring
Methods included from Node::Methods
#current_url, #current_url_without_params, #document, #initialize, #node
Constructor Details
This class inherits a constructor from AePageObjects::Element
Instance Method Details
#check ⇒ Object
3 4 5 |
# File 'lib/ae_page_objects/elements/checkbox.rb', line 3 def check node.set true end |
#checked? ⇒ Boolean
11 12 13 |
# File 'lib/ae_page_objects/elements/checkbox.rb', line 11 def checked? node.native.attribute('checked').to_s.eql?("true") end |
#uncheck ⇒ Object
7 8 9 |
# File 'lib/ae_page_objects/elements/checkbox.rb', line 7 def uncheck node.set false end |
#unchecked? ⇒ Boolean
15 16 17 |
# File 'lib/ae_page_objects/elements/checkbox.rb', line 15 def unchecked? !checked? end |