For some reason when I try to set my user data/profile it doesn\'t work. The code runs fine but once the browser launches I\'m not logged in to my profile. How would I go about
Just remove Profile 1 from user-data-dir=xxx, then try again
More information:
chrome://version in the browser to see what profile Chrome is using. such as C:\Users\quanql\AppData\Local\Google\Chrome\User Data\DefaultDefault at the end and use it as value of user-data-dir=. such as user-data-dir=C:/Users/quanql/AppData/Local/Google/Chrome/User Data/If you do not remove the Default in the 2nd step, then while you are running test case, open chrome://version in the browser which launched by chromedriver, you will see the profile Chrome that is using is C:\Users\quanql\AppData\Local\Google\Chrome\User Data\Default\Default. This is the reason, you just met the same problem.