Correct way to dispose of $Driver element?
onenoteperpage opened this issue · 1 comments
onenoteperpage commented
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?
onenoteperpage commented
Found it.
$Driver.Quit()