Skip to content

Unfortunately, when we open more than one thread of undetected chromedriver, if we quit one, the others will be closed. #2410

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

Closed
boludoz opened this issue Jan 4, 2024 · 4 comments
Labels
duplicate The answer/solution already exists somewhere invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@boludoz
Copy link

boludoz commented Jan 4, 2024

Unfortunately, when we open more than one thread of undetected chromedriver, if we use driver.quit(), the others will be closed.

@boludoz
Copy link
Author

boludoz commented Jan 4, 2024

In theory the problem should be in the way it closes, possibly the taskill.

@mdmintz mdmintz added duplicate The answer/solution already exists somewhere invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Jan 4, 2024
@mdmintz
Copy link
Member

mdmintz commented Jan 4, 2024

Duplicate of #2006 (comment)

Only pytest multithreading is supported via pytest-xdist.

In the pytest Syntax Formats, the driver is automatically quit at the end of each test. Therefore, if you were calling driver.quit() manually, then you probably weren't using UC Mode with pytest.

@mdmintz mdmintz closed this as completed Jan 4, 2024
@boludoz
Copy link
Author

boludoz commented Jan 16, 2024

Duplicate of #2006 (comment)

Only pytest multithreading is supported via pytest-xdist.

In the pytest Syntax Formats, the driver is automatically quit at the end of each test. Therefore, if you were calling driver.quit() manually, then you probably weren't using UC Mode with pytest.

I only need to take data from a protected web and write them down on one without any protection. When using without UC it works correctly. It seems to be a UC-only bug.

@boludoz
Copy link
Author

boludoz commented Jan 16, 2024

Disabling:

    "uc_subprocess": False,
    "uc_cdp_events": False

Works in UC mode, I guess it will be the same as nothing. Maybe placing the custom chromedriver route will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants