Closed DiMiTriFrog closed 2 years ago
To do this instead of get_session()
I used start_session()
. This will leave the drivers running however: to kill the drivers os.system("taskkill /f /im chromedriver/msedgedriver.exe")
on Windows.
Hi! Thanks for the response. I tried it but browser opens but isn't loading any.
@DiMiTriFrog Should work. Make sure to import services and browser
from arsenic.services import Chromedriver
from arsenic.browsers import Chrome
service = Chromedriver()
browser = Chrome()
session = await start_session(service, browser)
await session.get("https://google.com")
now you can pass on the session object variable to other functions
So right! I reboot my pc, so tests with chromedrivers.
Thanks so much, is working for me.
I need any way to keep the browser opened after code execution will finished.