Class: NativeDriver::Android::Bridge
- Inherits:
-
Selenium::WebDriver::Remote::Bridge
- Object
- Selenium::WebDriver::Remote::Bridge
- NativeDriver::Android::Bridge
- Defined in:
- lib/nativedriver/android/bridge.rb
Constant Summary collapse
- DEFAULT_URL =
"http://#{Selenium::WebDriver::Platform.localhost}:54129/hub"
Instance Method Summary collapse
- #driver_extensions ⇒ Object
-
#initialize(opts = {}) ⇒ Bridge
constructor
A new instance of Bridge.
Constructor Details
#initialize(opts = {}) ⇒ Bridge
Returns a new instance of Bridge.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/nativedriver/android/bridge.rb', line 7 def initialize(opts = {}) caps = Selenium::WebDriver::Remote::Capabilities.android( :browser_name => "android native", :version => opts[:version] || "2.2" ) super( :url => opts[:url] || DEFAULT_URL, :desired_capabilities => caps ) end |
Instance Method Details
#driver_extensions ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/nativedriver/android/bridge.rb', line 19 def driver_extensions [ Selenium::WebDriver::DriverExtensions::Rotatable, Selenium::WebDriver::DriverExtensions::TakesScreenshot, Android::DriverExtension ] end |