adb timeout error

239 views
Skip to first unread message

Green Lv

unread,
Mar 9, 2021, 9:57:31 PM3/9/21
to ChromeDriver Users
Hi all, when I was using chromedrvier with Appium or Selenuim to run Chrome on a real phone, I always encountered problems with adb. 

Here are my test codes:
Snipaste_2021-03-10_10-55-44.png

And here is part of error information output by Appium: 
  • [Chromedriver] [STDERR] [1615342794.518][DEBUG]: Sending adb command: host:transport:[device serial number]|shell:am start -W -n com.android.chrome/com.google.android.apps.chrome.Main -d data:,
  • [Chromedriver] [STDERR] [1615342824.550][INFO]: [498a114af16b82dee3581a56cea8c625] RESPONSE InitSession ERROR timeout: Adb command timed out after 30 seconds
However, when I tried the command line (adb shell am start -W -n com.android.chrome/com.google.android.apps.chrome.Main -d baidu.com) manually, it ran well without timeout.

I've already searched for solutions, but still had no clue yet. Can anybody help me with this?

Reply all
Reply to author
Forward
0 new messages