简体   繁体   中英

Python Selenium opens blank page and error with Chromium web browser?

Good code with Firefox

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')

However, when I change it to Chrome (Chromium), I'm getting the following error

Error Loading Extension

Failed to load extension from: .
Manifest file is missing or unreadable

The Chromium web browser opens a blank page instead of "http://seleniumhq.org/"

在此处输入图像描述

This is the code for Chromium. What should I do to fix this problem?

from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://seleniumhq.org/')

Good code with Firefox

from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')

However, when I change it to Chrome (Chromium), I'm getting the following error

Error Loading Extension

Failed to load extension from: .
Manifest file is missing or unreadable

The Chromium web browser opens a blank page instead of "http://seleniumhq.org/"

在此处输入图像描述

This is the code for Chromium. What should I do to fix this problem?

from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://seleniumhq.org/')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM