Module: PageObject::Widgets
- Defined in:
- lib/page-object/widgets.rb
Class Method Summary collapse
-
.register_widget(widget_tag, widget_class, base_element_tag) ⇒ Object
Module that allows for the registration of widget classes which extend the functionality of PageObject Allows any classes which extend PageObject::Element to be used as PageObject elements.
Class Method Details
.register_widget(widget_tag, widget_class, base_element_tag) ⇒ Object
Module that allows for the registration of widget classes which extend the functionality of PageObject Allows any classes which extend PageObject::Element to be used as PageObject elements. This allows such widgets to be created using the defined tags.
17 18 19 20 21 22 23 24 25 |
# File 'lib/page-object/widgets.rb', line 17 def self.(, , base_element_tag) if .ancestors.include? Elements::Element define_accessors(Accessors, , ) define_nested_elements(Elements::Element, ) define_locators(PageObject, ) PageObject::Platforms::Watir::PageObject.(, , base_element_tag) end end |