Web UI tests fail in Windows or Linux on Android devices

When you change the value of the WEBDRIVER_CHROME_DRIVER_MOBILE environment variable in the Windows or Linux operating system, and then run a Web UI test on the Android device, emulator, or simulator connected to the system, the test fails.

Cause

This issue is because the UI Test Agent does not read the new value assigned to WEBDRIVER_CHROME_DRIVER_MOBILE in the system.

Resolution

Restart the system on which you have defined the WEBDRIVER_CHROME_DRIVER_MOBILE environment variable, and then run the test.