Class: Sapphire::WebAbstractions::MetaBrowser
- Includes:
- RubySeleniumWebDriver
- Defined in:
- lib/sapphire/WebAbstractions/Browsers/MetaBrowser.rb
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
Attributes included from RubySeleniumWebDriver
Instance Method Summary collapse
- #Browser ⇒ Object
-
#initialize(driver) ⇒ MetaBrowser
constructor
A new instance of MetaBrowser.
Methods included from RubySeleniumWebDriver
#AcceptAlert, #AlertShown, #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
Constructor Details
#initialize(driver) ⇒ MetaBrowser
Returns a new instance of MetaBrowser.
9 10 11 |
# File 'lib/sapphire/WebAbstractions/Browsers/MetaBrowser.rb', line 9 def initialize(driver) @driver = driver end |
Instance Attribute Details
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
7 8 9 |
# File 'lib/sapphire/WebAbstractions/Browsers/MetaBrowser.rb', line 7 def driver @driver end |
Instance Method Details
#Browser ⇒ Object
13 14 15 16 |
# File 'lib/sapphire/WebAbstractions/Browsers/MetaBrowser.rb', line 13 def Browser() raise "Browser is null. Did you forget to start the browser?" if self.driver.nil? or self.driver.browser.nil? self.driver.browser end |