Как ни пробовал, не получилось.
Исходный код такой (Splinter):
@pytest.fixture(scope="function") def browser(request): options = webdriver.ChromeOptions() options.add_argument("--start-maximized") executable_path = {'executable_path': "../chromedriver.exe"} """ Using splinter (python tool): https://github.com/cobrateam/splinter""" browser = Browser("chrome", headless=False, incognito=True, options=options, **executable_path) # browser = Browser("chrome", headless=False, incognito=True) yield browser browser.quit()github.com/cobrateam/splinter
github.com/SergeyPirogov/webdriver_manager