Hi All,
I am new to this group.I am trying to run basic test script of opening google page using chrome browser on real android device[vivo] with Appium[1.6.1].but i am getting following error
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome ‘63.0.3239’. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details.
With respect to error message i have installed chromedriver version"2.36" compatible version for Chrome 63.0 and also created .npmrc file as detailed in following link “https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md”
My Script is as below,
public class SampleTestCaseOne {
public static AppiumDriver driver;
public static void main(String[] args) {
//Set the Desired Capabilities
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("deviceName", "d688b4e0"); //Give Device ID of your mobile phone
caps.setCapability("device", "Android");
caps.setCapability("platformVersion", "5.1.1");
caps.setCapability("browserName", "Chrome");
//caps.setCapability("chromedriverExecutableDir","C:\\Users\\laksh\\eclipse-workspace\\AppiumMobileBlog\\node_modules\\chromedriver\\bin\\chromedriver.exe");
//Instantiate Appium Driver
try {
driver = new AndroidDriver(new URL("http://0.0.0.0:4724/wd/hub"), caps);
driver.manage().timeouts().implicitlyWait(20L,TimeUnit.SECONDS);
} catch (MalformedURLException e) {
System.out.println(e.getMessage());
}
//Open URL in Chrome Browser
driver.get("https://www.google.com");
}
Please help me in this regard.
Thanks,
Lakshmi