selenium Cannot call non W3C standard command while in W3C mode解决

发布于 2021-04-17 08:17:09

在使用selenium进行UI自动化,控制页面做上下滑动的时候遇到了如下报错selenium.common.exceptions.WebDriverException: Message: unknown command: Cannot call non W3C standard command while in W3C mode

解决办法:

opt =webdriver.ChromeOptions()    
opt.add_experimental_option('w3c',False)    
dr= webdriver.Chrome(chrome_options=opt)



关注公众号,了解更多it技术(it问答网

0 条评论

发布
问题