Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用Selenium编辑Google扩展选项_Python_Selenium_Google Chrome Extension_Recaptcha - Fatal编程技术网

Python 使用Selenium编辑Google扩展选项

Python 使用Selenium编辑Google扩展选项,python,selenium,google-chrome-extension,recaptcha,Python,Selenium,Google Chrome Extension,Recaptcha,我试图在使用Selenium时使用Buster验证码扩展。我遇到的问题是,当运行Selenium时,Buster的扩展选项与我的个人扩展选项不同。我想勾选允许扩展模拟用户输入的框。硒有没有办法做到这一点?如果不是的话,也许是一种加载我的扩展首选项的方法 这是我当前代码的扩展部分 from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() opti

我试图在使用Selenium时使用Buster验证码扩展。我遇到的问题是,当运行Selenium时,Buster的扩展选项与我的个人扩展选项不同。我想勾选允许扩展模拟用户输入的框。硒有没有办法做到这一点?如果不是的话,也许是一种加载我的扩展首选项的方法

这是我当前代码的扩展部分

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_extension("Buster Extension Path")
DRIVER_PATH = "Chrome Driver Path"
driver = webdriver.Chrome(options=options, executable_path=DRIVER_PATH)