Class: RDee::BrowserFactory

Inherits:
Object
  • Object
show all
Includes:
AdditionalOptions, DesiredCapabilities, TargetParser
Defined in:
lib/rdee/browser_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AdditionalOptions

#additional_options_for, #need_android_options?, #need_chrome_options?, #need_firefox_options?, #need_ie_options?, #need_ios_options?, #need_safari_options?

Methods included from DesiredCapabilities

#capabilities

Methods included from MobileCapabilities

#additional_capabilities_for

Methods included from MobileDevices

#mobile?, #mobile_browsers, #mobile_platform, #mobile_targets

Methods included from TargetParser

#parse

Instance Attribute Details

#android_capabilitiesObject

Returns the value of attribute android_capabilities.



18
19
20
# File 'lib/rdee/browser_factory.rb', line 18

def android_capabilities
  @android_capabilities
end

#android_optionsObject

Returns the value of attribute android_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def android_options
  @android_options
end

#chrome_optionsObject

Returns the value of attribute chrome_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def chrome_options
  @chrome_options
end

#firefox_optionsObject

Returns the value of attribute firefox_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def firefox_options
  @firefox_options
end

#ie_optionsObject

Returns the value of attribute ie_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def ie_options
  @ie_options
end

#ios_capabilitiesObject

Returns the value of attribute ios_capabilities.



18
19
20
# File 'lib/rdee/browser_factory.rb', line 18

def ios_capabilities
  @ios_capabilities
end

#ios_optionsObject

Returns the value of attribute ios_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def ios_options
  @ios_options
end

#persistent_httpObject

Returns the value of attribute persistent_http.



15
16
17
# File 'lib/rdee/browser_factory.rb', line 15

def persistent_http
  @persistent_http
end

#safari_optionsObject

Returns the value of attribute safari_options.



16
17
18
# File 'lib/rdee/browser_factory.rb', line 16

def safari_options
  @safari_options
end

#urlObject

Returns the value of attribute url.



15
16
17
# File 'lib/rdee/browser_factory.rb', line 15

def url
  @url
end

Instance Method Details

#selenium_browser(target, options) ⇒ Object



25
26
27
28
# File 'lib/rdee/browser_factory.rb', line 25

def selenium_browser(target, options)
  platform, options = platform_and_options(target, options)
  selenium_browser_for(platform, options)
end

#watir_browser(target, options) ⇒ Object



20
21
22
23
# File 'lib/rdee/browser_factory.rb', line 20

def watir_browser(target, options)
  platform, options = platform_and_options(target, options)
  watir_browser_for(platform, options)
end