Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 335
Soheet Avatar asked Dec 20 '25 08:12

Soheet


1 Answers

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 ;-)

enter image description here

like image 95
wswebcreation Avatar answered Dec 22 '25 22:12

wswebcreation



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!