Class: PageObject::Elements::Canvas

Inherits:
Element
  • Object
show all
Defined in:
lib/page-object/elements/canvas.rb

Instance Attribute Summary

Attributes inherited from Element

#element

Instance Method Summary collapse

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

included

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

#heightObject

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

#widthObject

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