Search code examples
appium-android

Unable to automate Hybrid Android mobile app using appium


I want to automate test a basic Hybrid Mobile Application running in Android.I am able to launch the app in emulator but not able to enter the text in the login screen.

Getting error as

"Exception in thread "main" io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '53.0.2785'. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details. "

Please help me resolving this!!!!!


Solution

    1. If you see chromedriver.exe change log you will get the version you require for hybrid app automation. The browser used in your device have versin 53+

    2. See this url http://chromedriver.chromium.org/downloads [check ChromeDriver 2.24 details] it says it supports browser with version 53+. Get this exe from https://chromedriver.storage.googleapis.com/index.html?path=2.24/

    3. How to connect with Appium - If you are using appium desktop, it gets installed as windows application in program files folder. Now location of chromedriver.exe it uses is as mentioned below.

    C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe [This location may be bit different in your case]

    1. Replace above location chromedriver from downloaded chromedriver.exe(from step2)

    Note - Ideally automation should work without throwing exception. Incase still it doesn't work then try 1+ or 1- version of 2.24