Class: Sapphire::WebAbstractions::ChromeBrowser

Inherits:
Object
  • Object
show all
Includes:
RubySeleniumWebDriver
Defined in:
lib/sapphire/WebAbstractions/Browsers/Chrome.rb

Instance Attribute Summary collapse

Attributes included from RubySeleniumWebDriver

#rootUrl

Instance Method Summary collapse

Methods included from RubySeleniumWebDriver

#AcceptAlert, #AlertShown, #Browser, #Close, #ClosePopup, #Create, #CurrentUrl, #ExecuteScript, #FindAlert, #FindAllItems, #FindElement, #FindElements, #FindItem, #FindItemWithWait, #FindItemWithoutWait, #GetValue, #Init, #NavigateTo, #Reload, #Run, #Screenshot, #SetAlert, #SetRootUrl, #ShouldNavigateTo, #ShouldTransitionTo, #Switch, #SwitchToIFrame, #SwitchToPopup, #Type

Methods included from Pluggable

included, intercept

Constructor Details

#initializeChromeBrowser

Returns a new instance of ChromeBrowser.



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

def initialize()
  @browser = self.Create :chrome
  super @browser
  $driver = MetaBrowser.new(self)
end

Instance Attribute Details

#browserObject (readonly)

Returns the value of attribute browser.



11
12
13
# File 'lib/sapphire/WebAbstractions/Browsers/Chrome.rb', line 11

def browser
  @browser
end