Class: Watigiri::Element
- Inherits:
-
Object
- Object
- Watigiri::Element
- Defined in:
- lib/watigiri/locators/element/locator.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
Instance Method Summary collapse
-
#initialize(element:, selector:) ⇒ Element
constructor
A new instance of Element.
- #tag_name ⇒ Object
Constructor Details
#initialize(element:, selector:) ⇒ Element
Returns a new instance of Element.
5 6 7 8 |
# File 'lib/watigiri/locators/element/locator.rb', line 5 def initialize(element:, selector:) @element = element @selector = selector end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
3 4 5 |
# File 'lib/watigiri/locators/element/locator.rb', line 3 def element @element end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
3 4 5 |
# File 'lib/watigiri/locators/element/locator.rb', line 3 def selector @selector end |
Instance Method Details
#tag_name ⇒ Object
10 11 12 |
# File 'lib/watigiri/locators/element/locator.rb', line 10 def tag_name element.name.downcase end |