question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium 1.7.2 - Chromedriver : chrome not reachable

See original GitHub issue

The problem

Hi! I’m triying to run a simple test on a hybrid app on android. When inspect the app with google chrome everything works! But when I try to execute my test get this error from Chromedriver (Using the debug capability for chromedriver):

DevTools request: http://localhost:<someport>/json/version

I have another test with an hybrid app working perfectly.

Thanks in advance!

Environment

  • Appium version: 1.7.2
  • Desktop OS/version used to run Appium: Manjaro Linux 17.1.6 / Deepin 15.5
  • Node.js version: v9.6.1
  • Mobile platform/version under test: Galaxy TAB A and Galaxy J5 2006 - Android 6.0.1
  • Real device
  • Appium CLI

Details

  • I test using chromedriver: 2.30, 2.31, 2.32, 2.33, 2.34 and 2.35.
  • My device have Google Chrome 64.
  • Remote debug works perfectly
  • The app have debug mode only

Link to Appium logs

https://gist.github.com/pascencio/703faec167eba4cce5bcc0b668b017a5

Code To Reproduce Issue

@Test
public void test() throws MalformedURLException, InterruptedException {
    DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
    desiredCapabilities.setCapability("platformName", "Android");
    desiredCapabilities.setCapability("platformVersion", "6.0.1");
    desiredCapabilities.setCapability("deviceName", "Test");
    desiredCapabilities.setCapability("appPackage", "cl.another.package");
    desiredCapabilities.setCapability("appActivity", ".MainActivity");
    desiredCapabilities.setCapability("autoWebview", true);
    AppiumDriver<WebElement> driver = new AndroidDriver<WebElement>(new URL("http://localhost:4723/wd/hub"), desiredCapabilities);

    driver.findElements(By.xpath("//*[@id=\"log_pers_rut\"]")).get(0).sendKeys("1-9");
    driver.findElements(By.xpath("//*[@id=\"log_pers_password\"]")).get(0).sendKeys("12345");
    driver.findElements(By.xpath("//*[@id=\"ingresar_pers\"]")).get(0).click();
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
fdPoornimacommented, Nov 16, 2018

Hello, what was the resolution for this? I face this issue intermittently and it affects the reliability of the scripts. I am using the latest chromedriver (2.43 - overriding the appium one) and using 1.8.2-beta

1reaction
mykola-mokhnachcommented, Aug 27, 2018

Closed as inactive

Read more comments on GitHub >

github_iconTop Results From Across the Web

org.openqa.selenium.WebDriverException: chrome not ...
I'm using appium 1.7.2 and I'm also facing this issue. I'm running 2 test cases and I always meet this exception at the...
Read more >
Running test on any Android 'O' device fails due to "Chrome ...
When I run the code on any Android 'O' real device, app gets installed but fails to login. Checking the Appium logs says...
Read more >
Chrome not reachable - Issues/Bugs - Appium Discuss
Set chromedriver port to 9515 and chromedriver binary path to <chromedriver.exe path on your system> in advanced tab of Appium 1.6.4 · Delete ......
Read more >
Chrome not reachable error - Issues/Bugs - Appium Discuss
When we run the first test case, it logs into our application just fine and creates a ChromeDriver session. Appium log output
Read more >
Selenium WebDriver capabilities for running tests on ...
For running your Selenium and Appium tests on BrowserStack it, ... Console Logs are available for Selenium tests on Desktop Chrome and Mobile...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found