Closed milahu closed 4 months ago
but why'd someone want that for lol?
Why not use the following?
async def main():
chrome_options = webdriver.ChromeOptions()
args = dict(
options=chrome_options,
)
actually_need_chromium = False
if not actually_need_chromium:
return
async with webdriver.Chrome(**args) as driver:
await driver.get('http://nowsecure.nl#relax')
yepp, nevermind
i had the wrong impression
that some other selenium library requires explicit driver.start_session()
which gives me more freedom in the sequence of commands
but no...
self.start_session(capabilities)
browser = subprocess.Popen
super(Chrome, self).__init__
haha well then nvm:)
allow to defer the actual start of chromium
the context manager
webdriver.Chrome
is useful to ensure cleanup but it can be too limiting when the app later decides that it does not need chromium