Web UI tests fail in Mac on Android devices
When you change the value of the WEBDRIVER_CHROME_DRIVER_MOBILE environment variable in the Mac 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
You must perform the following steps:
- Add the WEBDRIVER_CHROME_DRIVER_MOBILE environment
variable with the ChromeDriver path to the
/Library/LaunchAgents/ui.test.agent.plist file.
For example, you can add the following values:
<dict> <key>WEBDRIVER_CHROME_DRIVER_MOBILE</key> <string>/Application/chromedriver</string> </dict>
- Restart the system and then run the test.