Search code examples
javaandroidseleniumselenium-webdriverselendroid

While creating selenium script for android browser, why this error showing?


Why this error is showing? Why i am getting this error. which library file should i use to resolve this error.


Solution

  • Looks like you don't have the selenium-android-driver jar. But the Android driver has been replaced by selendriod. Instead you should do:

    WebDriver driver = new RemoteWebDriver(DesiredCapabilities.android());