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.

Cannot automate browser in Android 6.0

See original GitHub issue

The problem

The stock browser launches and quits immediately a few times before Appium gives up.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.3
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: macOS 10.12.2
  • Node.js version (unless using Appium.app|exe): 7.1.0
  • Mobile platform/version under test: Android 6.0
  • Real device or emulator/simulator: Emulator
  • Appium CLI or Appium.app|exe: Appium CLI

Details

I am not sure whether more explanation is necessary, but since the stock browser is called “Browser”, I am not sure why Chrome is mentioned. This is the error received on the client side:

unknown error: Chrome version must be >= 53.0.2785.0
  (Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.12.2 x86_64)

I have also tried to start Appium with the --chromedriver-executable argument using the latest version of chromedriver, just in case it would make a difference:

unknown error: Chrome version must be >= 53.0.2785.0
  (Driver info: chromedriver=2.26.436421 (6c1a3ab469ad86fd49c8d97ede4a6b96a49ca5f6),platform=Mac OS X 10.12.2 x86_64)

Link to Appium logs

https://gist.github.com/SteffenL/3741126ad7ef12482b6a6dd64a725fb8

Code To Reproduce Issue [ Good To Have ]

from selenium import webdriver

cap = {"browserName": "Browser", "platformName": "Android", "deviceName": "Android Emulator", "platformVersion": "6.0", "automationName": "Appium", "avd": "Nexus_5_6.0"}
driver = webdriver.Remote("http://localhost:4723/wd/hub", cap)
driver.get("http://www.seleniumhq.org/")
driver.quit()

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SteffenLcommented, Jan 6, 2017

Sorry for the delay. I can finally confirm that chromedriver version 2.20 works with the Android 6 emulator.

1reaction
rkavalapcommented, Dec 17, 2016

@SteffenL For every chromedriver version, there is a corresponding mapping for chrome version. You may want to look at the notes to see which version is most applicable http://chromedriver.storage.googleapis.com/2.26/notes.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Automate Web App On Chrome Browser In ...
This tutorial explains the step-by-step process to automate web applications on the Chrome browser in Android device with screenshots and ...
Read more >
Not able to Communicate with Browser Screen on Mobile ...
Hi, I am working on a Mobile Automation Project. I have uploaded the Mobile Application .apk file into BrowserStack, and i am able...
Read more >
Android Mobile Browser Automation with Appium - YouTube
In this lecture, I have shown Step by step instructions on how to automate chrome mobile browser App using Appium with real time...
Read more >
How to run Appium/Selenium test android chrome browser
Recently I got a new requirement in my organization to execute all our Selenium test in Android and IOS devices.
Read more >
Sign in with a supported browser - Android
Are being controlled through software automation rather than a human; Are embedded in a different application. Step 1. Use a supported browser. These...
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