So I'd like to open chrome with its default profile using pythons webdriver. I've tried everything I could find but I still couldn't get it to work. Thanks for the help!
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
This solved my problem. (remove Default at the end)
Chrome_Options
ist deprecated. Useoptions
insteadThis is what finally got it working for me.
To find path to your chrome profile data you need to type
chrome://version/
into address bar . For ex. mine is displayed asC:\Users\pc\AppData\Local\Google\Chrome\User Data\Default
, to use it in the script I had to exclude\Default\
so we end up with onlyC:\Users\pc\AppData\Local\Google\Chrome\User Data
.Also if you want to have separate profile just for selenium: replace the path with any other path and if it doesn't exist on start up chrome will create new profile and directory for it.