fastlane/lib/fastlane/actions/appium.rb in fastlane-2.68.0 vs fastlane/lib/fastlane/actions/appium.rb in fastlane-2.68.1
- old
+ new
@@ -82,14 +82,17 @@
caps = params[:caps] || {}
caps[:platformName] ||= params[:platform]
caps[:autoAcceptAlerts] ||= true
caps[:app] = params[:app_path]
+ appium_lib = params[:appium_lib] || {}
+
@driver = Appium::Driver.new(
caps: caps,
server_url: params[:host],
- port: params[:port]
+ port: params[:port],
+ appium_lib: appium_lib
).start_driver
Appium.promote_appium_methods(RSpec::Core::ExampleGroup)
end
c.after(:each) do
@@ -157,20 +160,27 @@
key: :caps,
env_name: 'FL_APPIUM_CAPS',
description: 'Hash of caps for Appium::Driver',
is_string: false,
optional: true
+ ),
+ FastlaneCore::ConfigItem.new(
+ key: :appium_lib,
+ env_name: 'FL_APPIUM_LIB',
+ description: 'Hash of appium_lib for Appium::Driver',
+ is_string: false,
+ optional: true
)
]
end
def self.author
'yonekawa'
end
def self.is_supported?(platform)
- platform == :ios
+ [:ios, :android].include?(platform)
end
def self.category
:testing
end
@@ -182,9 +192,12 @@
spec_path: "appium/spec",
platform: "iOS",
caps: {
versionNumber: "9.1",
deviceName: "iPhone 6"
+ },
+ appium_lib {
+ wait: 10
}
)'
]
end
end