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

I set my _user_data_dir , but for some reason the main browser opens [BUG] #286

Open
Toxenskiy opened this issue Nov 27, 2024 · 3 comments
Labels
bug Something isn't working unconfirmed a bug which hasn't been reproduced yet

Comments

@Toxenskiy
Copy link

Toxenskiy commented Nov 27, 2024

I specify an empty folder via _user_data_dir and then the Default folder with Preferences is created in this folder and the main browser is opened, but the folder I specified is not used.

Code

if bin_folder:
    options._user_data_dir = bin_folder # C:\Users\RUN\PycharmProjects\m\a\1\data_dir

P.S. How to make the browser close and delete itself, if the code was stopped and did not reach driver.quit . I think it happened in selenium where the browser was closed when closing the code.

@Toxenskiy
Copy link
Author

there is no line in the original code to add the path to the arguments
изображение

@kaliiiiiiiiii
Copy link
Owner

Uhh yeah maybe I did didn't think this through properly lol

@Toxenskiy
Copy link
Author

Could you add this function
P.S. How to make the browser close and delete itself, if the code was stopped and did not reach driver.quit . I think it happened in selenium where the browser was closed when closing the code.

@kaliiiiiiiiii kaliiiiiiiiii added bug Something isn't working unconfirmed a bug which hasn't been reproduced yet labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed a bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants