We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f398041 commit da1c042Copy full SHA for da1c042
lib/appium_lib/driver.rb
@@ -54,6 +54,9 @@ def initialize options={}
54
# The name to use for the test run on Sauce.
55
@app_name = opts.fetch :app_name, ENV['APP_NAME']
56
57
+ # If key or env is defined, use selendroid else nil
58
+ @selendroid = opts.key?(:selendroid) || ENV['SELENDROID'] ? 'selendroid' : nil
59
+
60
# Android app package
61
@app_package = opts.fetch :app_package, ENV['APP_PACKAGE']
62
@@ -119,7 +122,7 @@ def android_capabilities
119
122
browserName: 'Android',
120
123
platform: 'LINUX',
121
124
version: '4.1',
- device: 'Android',
125
+ device: @selendroid || 'Android',
126
name: @app_name || 'Ruby Console Android Appium',
127
app: absolute_app_path,
128
:'app-package' => @app_package,
0 commit comments