Getting Saucelab error "There is no device that matches your criteria."
I am trying to run an Appium test in saucelab real devices. But that is throwing error "There is no device that matches your criteria." All config files with console logs are pasted here : https://paste.gg/p/anonymous/dd07ccb1149d4b3187125afa969fb138
Please help!!
This is because Sauce Labs Real Devices currently doesn’t support W3C capabilities. The plan is to release this end of January 2022.
For now please remove all ‘appium:’ prefixes and remove the ‘sauce:options’ and provide “valid” JSONWP options. This means that the ‘appiumVersion’ (which should be around 1.20) and the ‘build’ should be at the root level of your capabilities . Something like this
Update:
The problem was the platformVersion: '11.0'
, there is no Android 11.0
version, only an Android 11
version, see also the screenshot.
I've checked it on my machine and by changing the version from 11.0
to 11
it worked.
I must say the returned error is misleading, but on the other hand, it also tells the truth ;-)