Module: Capybara::Selenium::Driver::Ios

Defined in:
lib/capybara-ios-emulation-driver/profile/firefox.rb,
lib/capybara-ios-emulation-driver/profile/chrome.rb,
lib/capybara-ios-emulation-driver.rb

Defined Under Namespace

Modules: Profile

Class Method Summary collapse

Class Method Details

.chrome_driver(params = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/capybara-ios-emulation-driver.rb', line 9

def self.chrome_driver params = {}
  options = {
    :ios_version => ::Capybara::IosEmulationDriver::LATEST_IOS_VERSION,
    :ios_device  => :iphone,
    :app         => nil
  }.update(params)

  ::Capybara::Selenium::Driver.new(options[:app], Profile::Chrome.driver_options(options).merge(:browser => :chrome))
end

.firefox_driver(params = {}) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/capybara-ios-emulation-driver.rb', line 19

def self.firefox_driver params = {}
  options = {
    :ios_version => ::Capybara::IosEmulationDriver::LATEST_IOS_VERSION,
    :ios_device  => :iphone,
    :app         => nil
  }.update(params)

  ::Capybara::Selenium::Driver.new(options[:app], Profile::Firefox.driver_options(options).merge(:browser => :firefox))
end