Hi! Could you please enable Selenium Chromedriver for my account? The default Firefox driver can't open my web pages. Thank you!
Hi! Could you please enable Selenium Chromedriver for my account? The default Firefox driver can't open my web pages. Thank you!
You already have this enabled.
To use Chrome, you'll need to upgrade Selenium for your account -- for example, if you're using Python 3.7, run this in Bash:
pip3.7 install --user --upgrade selenium
...and then you can run Selenium with Chrome using code like this:
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
browser = webdriver.Chrome(options=chrome_options)
try:
browser.get("https://www.google.com")
print("Page title was '{}'".format(browser.title))
finally:
browser.quit()