Method: SeleniumPlus::Container#section
- Defined in:
- lib/selenium_plus/page_obj/container.rb
#section(name, section_class, *find_args) ⇒ SeleniumPlus::Section
Define partial section of the page
Examples:
class DemoPage < SeleniumPlus::Page
Section(:search_section, SearchSection, :id, 'div#search_me')
end
51 52 53 54 55 |
# File 'lib/selenium_plus/page_obj/container.rb', line 51 def section(name, section_class, *find_args) define_method(name) do section_class.new(find(*find_args)) end end |