adamdriscoll/selenium-powershell

Correct way to dispose of $Driver element?

onenoteperpage opened this issue · 1 comments

Loaded the driver using:

$Driver = Start-SeFirefox

I have tried to look at the functions available to $Driver such as:

$Driver.Close()
$Driver.Exit()

But this is not stopping the driver. What is the best practice to close the driver when it's complete and dispose of the loaded modules in memory?

Found it.

$Driver.Quit()