Class: SeleniumPlus::Page

Inherits:
Object
  • Object
show all
Extended by:
Container
Includes:
Finders
Defined in:
lib/selenium_plus/page_obj/page.rb

Instance Method Summary collapse

Methods included from Container

element, elements, iframe, section

Methods included from Finders

#find, #find_all

Constructor Details

#initializePage

Returns a new instance of Page.



6
7
8
# File 'lib/selenium_plus/page_obj/page.rb', line 6

def initialize
  SeleniumPlus.driver.native.switch_to.default_content
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