Hi everyone.
I have the the following in my appium.txt file:
[caps]
platformName = "iOS"
platformVersion = '9.2'
app = "blah.app"
deviceName = "iPhone 6"
sendKeyStrategy = "setValue"
autoWebview = "true"
when I use this to launch a test it works fine. But I want to make the tests more flexible and you cannot use names other than appium.txt for the caps file. So I am using the following:
caps = {
'platformName' => 'iOS',
'platformVersion' => '9.2',
'app' => 'blah.app',
'deviceName' => 'iPhone 6',
'sendKeyStrategy' => 'setValue',
'autoWebview' => 'true'
}
$appium_driver = Appium::Driver.new(caps)
However when I try to run the tests this way I get the following error:
Selenium::WebDriver::Error::SessionNotCreatedError:
The following desired capabilities are required, but were not provided: platformName, deviceName
I am specifying those values in the hash so not understanding what's happening here.
Hoping someone can help.
Sincerely,