kaliiiiiiiiii / Selenium-Driverless

undetected Selenium without usage of chromedriver
https://kaliiiiiiiiii.github.io/Selenium-Driverless/
Other
430 stars 52 forks source link

User data gets overwritten / doesn't work #73

Closed Fragaile closed 9 months ago

Fragaile commented 9 months ago

the flag --user-data-dir works maybe once but gets overwritten next time code is run and goes back to default chrome. Maybe this is still not implemented, not sure :)

Fragaile commented 9 months ago

Basically I'm looking for a way to stay logged every time I launch selenium-driverless.

kaliiiiiiiiii commented 9 months ago

You'll have to:

  1. set the --user-data-dir=C://some_path/user_data
  2. Copy the data to another directory (or use driver.quit(clean_dirs=False) in the dev-branch version//next release
  3. start the new session with the same --user-data-dir=C://path_to_userdata_backup/user_data

Hope that resolves your issue. Feel free to reportuin case it doesn't

kaliiiiiiiiii commented 9 months ago

@srichards2103 With selenium-driverless==1.6, you can now do:

driver.quit(clean_dirs=False)