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.

chromedriver fails to start sometimes because of adb returns wrong device name

See original GitHub issue

Sending adb command: host:devices\n[0.033][DEBUG]: Received adb response: 0015emulator-5554\tdevice\n\n[0.033][INFO]: RESPONSE InitSession unknown error: Device emulator-5554 is not online\n[0.033][DEBUG]: Log type \'driver\' lost 0 entries on destruction\n[0.033][DEBUG]: Log type \'browser\' lost 0 entries on destruction\n[0.246][INFO]: COMMAND InitSession {\n "desiredCapabilities": {\n "chromeOptions": {\n "androidDeviceSerial": "emulator-5554",\n "androidPackage": "io.selendroid.testapp",\n "androidUseRunningApp": true ^^ above adb returns extra 0015emulator-5554\tdevice\n which is causing test to fail.

Chromedriver/appium should be able to retry without device name.

cc @filmaj

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PeaceDevelopercommented, Feb 29, 2016

I installed the windows appium via executable. And to me also happened the same problem reported by the noble colleague.

I solved it this way:

  1. First I accessed the folder C:\Program Files (x86)\Appium\node_modules\ appium.
  2. I drove the ncu -u. With that all packages will be upgraded to the latest version. I did not notice any side effects with this act.
  3. After that, everything started to work in the best possible way.

I hope I have helped someone. 😃

0reactions
lock[bot]commented, Apr 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ADB is not starting (no error message) - Stack Overflow
1) Shift + Right click in ...\android-sdk\platform-tools folder and select Open command window here · 2) Use these commands: adb kill-server then adb...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
Why my google chrome is closing automatically
Click on Sometimes, when Chrome crashes, then it suddenly closes and sometimes ... An ip can be a device name if you are...
Read more >
adb connection failed after updated to window10 [37056119]
After updated to window 10 from win 7, the adb connection can't be established. I re-install Android Studio, Kill and re-start the adb...
Read more >
Here's what to do if ADB is not recognized in Windows 11
There are several reasons why this problem might occur. It can be a bad driver installation or a corrupt/missing file in your ADB...
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