-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Nodriver] How to attach nodriver to another existing session/browser? #1895
Comments
I couldn't solve this with the default nodriver setup, I had to modify the underlying config.py in core.config:
Then to use it'd be like this:
Maybe there's a way to modify uc.config & update the remote-debugging-port that way, but I couldn't figure that out. |
port=9999, host="127.0.0.1" not working for me mate because im in root with chrome and
any advice also with core config.py for some solution about problem of sandbox=True when we use headless=False????as root?? |
No need to make any modifications。 import nodriver as uc def cmd_start_brower(chrome_path, port, user_data_dir): def get_session_url(chrome_path, port, user_data_dir): async def main1(): port = 9315 检测浏览器是否已打开get_session_url(chrome_path, port, user_data_dir) |
How can I attach nodriver to another existing nodriver session (or to chrome existing tab/browser?)
In selenium/geckodriver I can do it with session ID:
Maybe there is some CDP hack for it? Please help.
The text was updated successfully, but these errors were encountered: