Class: Driver

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/page/driver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDriver

Returns a new instance of Driver.



7
8
9
10
# File 'lib/page/driver.rb', line 7

def initialize
  @browser = Selenium::WebDriver.for Page::CONFIG['browser'].to_sym
  @browser.manage.window.maximize
end

Instance Attribute Details

#browserObject (readonly)

Returns the value of attribute browser.



12
13
14
# File 'lib/page/driver.rb', line 12

def browser
  @browser
end