通过以上步骤,你应该能够解决“unexpected keyword argument 'chrome_options'”的错误,并使你的Selenium脚本能够正常运行。
解决TypeError: __init__() got an unexpected keyword argument 'chrome_options' 报错位置: 报错信息: TypeError: __init__() got an unexpected keyword argument 'chrome_options' 解决方法: 将chrome_options和options调换位置,把前面的定义的chrome_options更改为options 原因是新老版本selenium对于webdriver....
chrome_option = Options() chrome_option.add_argument("–disable-extensions") chrome_option.add_experimental_option(“debuggerAddress”, “127.0.0.1:9222”) browser = webdriver.Chrome(executable_path=“E:/chorme/chromedriver_win32/chromedriver.exe”, chrome_option=chrome_option) 运行程序后产生以下错...
options=chrome_options)TypeError: init() got an unexpected keyword argument 'options'复制代码 ...
Forums Chromedriver problem: __init__() got an unexpected keyword argument 'options' Hi! when i want to use options in selenium with chromedriver (it was habilited for me) i get the error of the title. I would like to know if there is something i miss ...
):super(BiqugeSpider,self).__init__self.browser=webdriver.Chrome(chrome_options=options)#修改后的代码def__init__(self,name=None,**kwargs):kwargs.pop('_job')#删除jobsuper(BiqugeSpider,self).__init__(name,**kwargs)#对两个变量进行使用self.browser=webdriver.Chrome(chrome_options=options)...
driver = get_chromedriver(use_proxy=True) File "/home/farhan1360/ip_rotation_selenium.py", line 79, in get_chromedriver driver = webdriver.Chrome( TypeError: __init__() got an unexpected keyword argument 'options' I think somethings need to be configure on your server. I am interested ...
myfile.py", line 43, in init_driver driver = uc.Chrome(options=options) File "/usr/local/lib/python3.10/site-packages/undetected_chromedriver/__init__.py", line 453, in __init__ super(Chrome, self).__init__( TypeError: WebDriver.__init__() got an unexpected keyword argument '...
【望老师解答】selenium复用浏览器报错:TypeError: __init__() got an unexpected keyword argument 'options' 提问区 selenium 1124391407_3806 2022 年10 月 8 日 07:17 1 问题 报错信息 image1920×968 99.8 KB 环境_AD (霍格沃兹_AD) 2022 年10 月 8 日 07:31 2 ctrl + 鼠标左键,点到Chrome 里...
self.driver = webdriver.Chrome('./chromedriver', options = chrome_options) TypeError:init() got an unexpected keyword argument 'options' But the code executes fine on my PC. Is something wrong with my code? Is Chrome not activated on my account?