-
Notifications
You must be signed in to change notification settings - Fork 301
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
Use the README.md example but always got "No inspectable targets" #136
Comments
You can also use
Are you sure there isn't another |
Did you go any further with this? |
Happened to me as well. Maybe client.close() doesn't do what it's supposed to ? |
@popsail from a previous comment: are you sure there isn't another chrome-remote-interface session (or any other CDP client) attached to that tab? If a tab is being inspected then the webSocketDebuggerUrl field is omitted as you cannot have simultaneous protocol clients. Show me the output of |
@cyrus-and So I think it will be caused if CDP inspects the same target more than once. Not a bug, just a user's wrong. |
I modified the
chrome.js
and print the targets, it show me this,The second object is my URL but
webSocketDebuggerUrl
does not exists.How can I fix it?
My env,
Ubuntu 16.04 LTS
Google Chrome 58.0.3029.81
And Google Chrome run with headless,
chrome --headless --disable-gpu --window-size=1366,768 --remote-debugging-port=9222 --user-data-dir=/mnt/tmp http://127.0.0.1
The text was updated successfully, but these errors were encountered: