adamdriscoll/selenium-powershell

Get-SeDriver / Stop-SeDriver - Check if browser process is still open

Closed this issue · 0 comments

Making any call on a closed browser can be very long (5-10 seconds) berfore it return an error.
Based on Combined.Test headless test, provided we have the driver service PID (which we have), we can get the associated browser.

That mean we could validate that the browser process is still open before attempting anything and return an error immediately if it is not the case.