Class: Sapphire::WebAbstractions::ChromeBrowser

Inherits:
Selenium::WebDriver::Chrome::Bridge
  • Object
show all
Includes:
WebBrowser
Defined in:
lib/sapphire/WebAbstractions/Controls/Chrome.rb

Instance Attribute Summary collapse

Attributes included from WebBrowser

#rootUrl

Instance Method Summary collapse

Methods included from WebBrowser

#CurrentUrl, #Init, #NavigateTo, #Reload, #Run, #SetRootUrl, #ShouldNavigateTo, #ShouldShow, #ShouldTransitionTo

Constructor Details

#initializeChromeBrowser

Returns a new instance of ChromeBrowser.



12
13
14
15
16
# File 'lib/sapphire/WebAbstractions/Controls/Chrome.rb', line 12

def initialize()
  @browser = Selenium::WebDriver.for :chrome
  super @browser
  $browser = @browser
end

Instance Attribute Details

#browserObject (readonly)

Returns the value of attribute browser.



10
11
12
# File 'lib/sapphire/WebAbstractions/Controls/Chrome.rb', line 10

def browser
  @browser
end