Skip to content
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

Using the module to drive chrome on an android device via usb #87

Open
daw3gr opened this issue Nov 30, 2024 · 0 comments
Open

Using the module to drive chrome on an android device via usb #87

daw3gr opened this issue Nov 30, 2024 · 0 comments

Comments

@daw3gr
Copy link

daw3gr commented Nov 30, 2024

Has anyone successfully managed to control a chrome browser on android connected via usb?

By setting:

adb forward tcp:9222 localabstract:chrome_devtools_remote

I can see requests to 127.0.0.1 port 9222 being forwarded and returning good responses on endpoints using curl. However via the module it hangs:

Found webSocket URL $VAR1 = {
'Browser' => 'Chrome/128.0.6613.128',
'WebKit-Version' => '537.36 (@684119cec7c073a293075f9b271ac44f7d8e2dca)',
'User-Agent' => 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36',
'Android-Package' => 'com.android.chrome',
'Protocol-Version' => '1.3',
'webSocketDebuggerUrl' => 'ws://127.0.0.1:9222/devtools/browser',
'V8-Version' => '12.8.374.26'
};

Connecting to ws://127.0.0.1:9222/devtools/browser

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant