Selenium close chrome immediately after test
USE OPTIONS(DETACH)
Selenium 浏览器闪崩
代码:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_experimental_option("detach", True)
driver = webdriver.Chrome(options=options)
driver.maximize_window()