-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Running Android automation permanently prevents Chrome Remote Debugging from working #26721
Comments
Could you explain what you mean by this? Playwright communicates to Android via ADB interface, independently from Chrome Devtools. When you say nothing can save it, do you mean that you can still start the browser, but chrome:inspect won't be able to see it? As a guess, could you adb shell into that device and remove the file |
Thanks for your reply @pavelfeldman. Indeed you can still start and use Chrome on Android but nothing actually works. Interestingly I realized that I don't even have Chrome Command Line enabled on this emulator currently (although in the past I did before rolling back my VM snapshot and the issue occurred just the same) So that makes it especially curious that Thanks very much for the tip @pavelfeldman and let me know if I can be any more help in resolving this issue for everyone. |
Thanks for confirming it, I'll see what I can do to make sure we generate unix named pipe names that chrome picks up. |
System info
npx playwright install android
"Source code
Config file
Test file (self-contained)
Steps
Warning: This process will effectively damage your emulator, rendering it unable to connect to Chrome Remote Debugging ever again.
android.js
)chrome://inspect/#devices
node android.js
Expected
Remote debugging is not disrupted, or at least, not permanently prevented
Actual
Remote debugging for the emulator will never work again, persisting through app data clearing, reboots, reinstalls, cold boots, most of the advice on StackOverflow, everything.
I confirmed this on two different emulators, one for API 31 and the other for API 33. Both suffer the same irreversible problem.
It presents as this device without anything under it, even though it had been connected to the device and showing its tabs immediately prior to running Playwright:
The text was updated successfully, but these errors were encountered: