Class: Axe::FindsPage

Inherits:
Object
  • Object
show all
Defined in:
lib/axe/finds_page.rb

Constant Summary collapse

WEBDRIVER_NAMES =
[:page, :browser, :driver, :webdriver]

Instance Method Summary collapse

Constructor Details

#initialize(world) ⇒ FindsPage

Returns a new instance of FindsPage.



11
12
13
# File 'lib/axe/finds_page.rb', line 11

def initialize(world)
  @world = world
end

Instance Method Details

#pageObject



15
16
17
# File 'lib/axe/finds_page.rb', line 15

def page
  from_configuration || implicit or raise "A page/browser/webdriver must be configured"
end