kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

Sauce: Mobile device emulation desired capabilities are not available #82

Closed kgress-heb closed 3 years ago

kgress-heb commented 3 years ago

Bug

In the past, tests could be ported to mobile device emulators with the same desired capability key/value pairs as desktop browsers. It looks like this has now changed according to the documentation on saucelabs and chromedriver:

This issue was discovered when an execution against Android Chrome and IOS Safari failed due to an invalid screen resolution size. Scaffold is attempting to use a desktop browser configuration (via ChromeOptions or SafariOptions) on a mobile device emulator and it will fail every time.

Expected

We shouldn't need to specify a screen resolution size and instead should be able to select a device. After some additional research, we will need to do the following work to fix the mobile device emulation support:

After implementing the change, we will need to test and ensure the desired capabilities are being configured correctly.

Repro

  1. Execute a run against sauce with run platform android and browser type chrome
  2. Observe the screen resolution error