📜  找不到opera binary selenium python代码示例

📅  最后修改于: 2022-03-11 14:45:58.078000             🧑  作者: Mango

代码示例1
from selenium import webdriver
from selenium.webdriver.opera.options import Options

options = Options()
options.binary_location = r'C:\path\to\opera.exe'
driver = webdriver.Opera(opera_options = options, executable_path=r'C:\Utility\BrowserDrivers\operadriver.exe')
driver.get('http://www.google.com')