Pre-req: Appium v1.16.0/chromedriver 80.0
- Installed appium with chrome browser version 80
- Started appium with --chromedriver-executable pointing to installed location of chromedriver in Mac OS. (Note: If I don’t mention executable path then I get no driver found to automate chrome 80…, hence I gave executable path for appium)
- Source: Test-script in my windows machine
- Destination: Appium server and android emulator available in Mac Desktop
- Requirement: Replay test-script from windows to mac
Capabilities and driver set in widows as below with appium server pointing to Mac OS
capabilities = {
"automationName": "Appium",
"platformName":"Android",
"deviceName":"Pixel2",
"browserName":"Chrome"
};
Below are the details of appium server running on Mac OS
AndroidDriver<AndroidElement> driver = new AndroidDriver<>(new URL("http://10.3.73.7:4723/wd/hub"), capabilities )
Output: Fails to launch webpage with below error.
NoSuchDriver: [POST http://10.3.73.78:4723/wd/hub/session/62c4c813-daa9-4b03-ae0c-9b6e6c222a83/url / {"url":"data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Chtml%3E%3Cbody%3E%3Ciframe%20id%3D%22inlineFrame%22%3E%3C%2Fiframe%3E%3C%2Fbody%3E%3C%2Fhtml%3E"}]
A session is either terminated or not started
Appium logs from MacOS can be accessed from below link