Class: SeleniumPlus::Page
- Inherits:
-
Object
- Object
- SeleniumPlus::Page
- Extended by:
- Container
- Includes:
- Finders
- Defined in:
- lib/selenium_plus/page_obj/page.rb
Instance Method Summary collapse
- #goto(url) ⇒ Object
-
#initialize ⇒ Page
constructor
A new instance of Page.
Methods included from Container
element, elements, iframe, section
Methods included from Finders
Constructor Details
#initialize ⇒ Page
Returns a new instance of Page.
6 7 8 |
# File 'lib/selenium_plus/page_obj/page.rb', line 6 def initialize SeleniumPlus.driver.switch_to_page end |
Instance Method Details
#goto(url) ⇒ Object
10 11 12 |
# File 'lib/selenium_plus/page_obj/page.rb', line 10 def goto(url) SeleniumPlus.driver.visit(url) end |