You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening browser via Playwright.BrowserType.launch(:chromium, options) and then closing the browser via Playwright.Browser.close(), the port opened to run chromium seems to stay open.
When closing the browser, playwright elixir keeps the GenServer of the Session alive.
In order to close the session and close the port you must close the session_pid like such:
# Start Browser{_,browser}=Playwright.BrowserType.launch(:chromium,options)# Close Browser and PortDynamicSupervisor.terminate_child(Playwright.Channel.Session.Supervisor,browser.session)
When opening browser via
Playwright.BrowserType.launch(:chromium, options)
and then closing the browser viaPlaywright.Browser.close()
, the port opened to run chromium seems to stay open.Seems to stem from within
Playwright.Transport
when called withTransport.Driver
here:https://github.com/geometerio/playwright-elixir/blob/17abee407e2d5fa30cc42ce62e8017c3d0ae8680/lib/playwright/transport/driver.ex#L18-L22
Even though all the
GenServer
s are started withstart_link
it doesnt seem to clean up the port.The text was updated successfully, but these errors were encountered: