Class: PageObject::Elements::Area

Inherits:
Element
  • Object
show all
Defined in:
lib/page-object/elements/area.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

#coordsObject

return the coordinates of the area



9
10
11
# File 'lib/page-object/elements/area.rb', line 9

def coords
  attribute(:coords)
end

#hrefObject

return the href of the area



23
24
25
# File 'lib/page-object/elements/area.rb', line 23

def href
  attribute(:href)
end

#shapeObject

return the shape of the area



16
17
18
# File 'lib/page-object/elements/area.rb', line 16

def shape
  attribute(:shape)
end