为什么selenium中简单的一个访问网页,现在只要程序一运行完,浏览器就会自动关闭,之间的话必须加上关闭命令才会关闭
option=Options()
option.add_argument('--disable-blink-features=AutomationControlled')
web=Chrome(options=option)
web.implicitly_wait(8)
web.get("https://www.baidu.com")
为什么selenium中简单的一个访问网页,现在只要程序一运行完,浏览器就会自动关闭,之间的话必须加上关闭命令才会关闭
option=Options()
option.add_argument('--disable-blink-features=AutomationControlled')
web=Chrome(options=option)
web.implicitly_wait(8)
web.get("https://www.baidu.com")
这样用 不知道你咋用 就没关闭
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
option=Options()
option.add_argument('--disable-blink-features=AutomationControlled')
web=webdriver.Chrome(options=option)
web.implicitly_wait(8)
web.get("https://www.baidu.com")