Skip to content Skip to sidebar Skip to footer

Selenium Chrome Instance With Profile Won't Load Site

I'm trying to fetch a site while using my profile as per instructions from this post. It successfully launches Chrome instance, but then it just stops and crashes after short amoun

Solution 1:

Might be an old issue by now but I have come across this issue myself and got here, so for future reference: It seems there's an issue with starting a selenium webdriver with chrome while an existing chrome window is open. That was my problem: Webdriver didn't proceed to execute the rest of the test, while in the back I had another chrome window open. After I closed that open window, the test worked perfectly. The issue has been reported though closed: https://bugs.chromium.org/p/chromedriver/issues/detail?id=1123 Best solution: either close existing chrome tab by testing, or do the tests in VM so no interruptions.

Solution 2:

Yes, as Bar Margalit pointed out, closing the existing chrome tab works but doesn't fully solve the problem. Especially if you want to use more than one Chrome Profile at the same time, you will run into the same problem again. What you can do though is move all relevant Chrome Profile folders to a different location (and change the directory in your code accordingly). It is pretty simple, I have answered the same question here:

Cannot open two Google Chrome instances with different profiles using selenium web driver for Chrome in Python

I hope this works for you.

Post a Comment for "Selenium Chrome Instance With Profile Won't Load Site"