Hello,
I can automate my app on recent Android phone, with Appium and ruby, but when I try with a Galaxy S2, I have the error message “Android devices must be of API level 17 or higher. Please change your device to Selendroid or upgrade Android on your device. (Selenium::WebDriver::Error::WebDriverError)”
I don’t know know how to change my device to Selendroid.
Right I’ve got in Ruby:
capabilities =
{
'appPackage'=> 'com.myapp.demo',
'appActivity'=> '.MainActivity',
'platformName' => 'Android',
'deviceName' => 'Galaxy S2',
'device' => 'Galaxy S2',
}
server_url = 'http://127.0.0.1:4723/wd/hub'
@driver = Selenium::WebDriver.for(:remote, desired_capabilities: capabilities, url: server_url)
@browser = Watir::Browser.new @driver
@browser.driver.manage.timeouts.implicit_wait = 30
How can I put this to Selendroid ?
Thanks a lot