lib/rufus/drivers/iOS_device.rb in rufus-0.7 vs lib/rufus/drivers/iOS_device.rb in rufus-0.8
- old
+ new
@@ -1,16 +1,16 @@
require 'selenium-webdriver'
+require 'rufus/drivers/driver_base'
module Rufus
module Drivers
- class IOS_Device
+ class IOS_Device < Rufus::Drivers::DriverBase
- def self.for(config,url)
+ def initialize(config)
@config = config
- Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities, :url => url)
end
- def self.capabilities
+ def capabilities
{
'browserName' => @config["browser"],
'platform' => @config["platform"],
'version' => @config["version"].to_s,
'app' => @config["app"]