option=webdriver.ChromeOptions()
option.add_experimental_option("detach",True) #True让浏览器不会自动关闭
option = webdriver.ChromeOptions()
option.add_experimental_option('excludeSwitches', ['enable-automation'])
option.add_experimental_option('useAutomationExtension', False)
不知原理,留存自用
文章介绍了如何在使用ChromeDriver时设置实验性选项,如`detach`使浏览器不自动关闭,以及排除`enable-automation`开关和禁用自动化扩展,以控制自动化测试的行为。
5042

被折叠的 条评论
为什么被折叠?



