So i did this for a Python Selenium Projekt:
You can do this by providing your chrome profile to the selenium.
First type this into your chrome address bar chrome://version/ and copy the profile path.
Note :- Remove the Default from the path i.e. if the path is /home/aditya/.config/google-chrome/Default then after removing the Default, the path will be /home/aditya/.config/google-chrome
then paste the profile path into the following code :-
options = webdriver.ChromeOptions()
options.add_argument("user-data-dir=/home/aditya/.config/google-chrome") # profile path
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://www.google.com")
Now i want to undo this i reinstalled Selenium and tried some other things but nothing worked! Can anyone help?
CodePudding user response:
Just erase the text you pasted there, you're configuring the Chromedriver to behave like a certain version of Chromium, so if you remove the line that is configuring it to do so, it will not longer do so. You are not permanently modifying the driver.
EDIT: THIS was the link that solved his problem.