selenium - chrome crashes when chrome is running. - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: selenium - chrome crashes when chrome is running. (/thread-14766.html) |
selenium - chrome crashes when chrome is running. - RvBVakama - Dec-16-2018 I've got this code: options = webdriver.ChromeOptions() options.add_argument("--user-data-dir=C:/Users/RvBVakama/AppData/Local/Google/Chrome/User Data") options.add_argument("--disable-extensions") options.binary_location = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" w = webdriver.Chrome(executable_path="C:/Program Files (x86)/Google/Chrome/Application/chromedriver.exe", options=options) w.get("https://www.google.com/")When I run my program without any chrome processes active, it works. Another post said it was an issue with a non-default installation of the chrome binary, but my install was installed in the default location. When I run it with any chrome processes active it fails and gives this log: My aim is to have my program run in the background once every hour. If my program requires me to close every tab and window just to run my script I would not be nice.Thanks :) RE: selenium chromedriver crashes when chrome is running. - Larz60+ - Dec-16-2018 from error traceback: Quote:so ChromeDriver is assuming that Chrome has crashedSo not chromedriver, but chrome itself. RE: selenium chromedriver crashes when chrome is running. - RvBVakama - Dec-16-2018 I wish I could change the title RE: selenium - chrome crashes when chrome is running. - Larz60+ - Dec-16-2018 Quote:I wish I could change the titlechanged for you RE: selenium - chrome crashes when chrome is running. - metulburr - Dec-16-2018 download chrome driver from here, dont use your chrome browser https://sites.google.com/a/chromium.org/chromedriver/downloads set the path to that driver, and then get rid of your options code w = webdriver.Chrome("C:/USER/Downloads/chromedriver") w.get("https://www.google.com/") |