Class: PageObject::Elements::Canvas
- Defined in:
- lib/page-object/elements/canvas.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#height ⇒ Object
return the height of the canvas.
-
#width ⇒ Object
return the width of the canvas.
Methods inherited from Element
#class_name, #click, #disabled?, #enabled?, #initialize, #inspect, #method_missing, plural_form, selenium_identifier_for, #style, watir_identifier_for
Methods included from NestedElements
Constructor Details
This class inherits a constructor from PageObject::Elements::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageObject::Elements::Element
Instance Method Details
#height ⇒ Object
return the height of the canvas
15 16 17 |
# File 'lib/page-object/elements/canvas.rb', line 15 def height attribute(:height).to_i end |
#width ⇒ Object
return the width of the canvas
8 9 10 |
# File 'lib/page-object/elements/canvas.rb', line 8 def width attribute(:width).to_i end |