Comment #56 on issue 1934 by
tobias.f...@admeta.com: WebDriver is not
I'm also still having the exact same issue using Windows 7, C# and the
WebDriver for Firefox version 2.39. I have resorted to calling
WebDriver.Close only and then manually delete the profile directory
(recursivly) as extracted via
var profile = new FirefoxProfile(Config.FireFoxProfilePath);
var _profileDirectory = profile.ProfileDirectory;
//in dispose method:
WebDriver.Close();
Directory.Delete(_profileDirectory, recursive: true); //WebDriver.Quit();
The problem is, besides that WebDriver.Quit fails due to an exception, is
that I have to have a try catch around the Directory.Delete statement due
to an IOException telling me that ""Access to the
path 'csharpfo...@seleniumhq.org.xpi' is denied.". Though when
checking the file with a Windows Explorer plugin like Unlocker, it reveals
that there are no locks on the file. And there is no problem deleting the
file manually in the the File Explorer. Running Visual Studio as an
administrator makes no difference.
When using the WebDriver.Quit() method instead, it actually seemt, with
this version of the We3bDriver to catch the exception since exactly the
same files remains after the execution. So my manual Delete statement I
guess is similar to what is under the hood in WebDriver.Quit(). But the
problem remains that all files are not deleted. The memory footpring seem
to be reduced to <800 KB which.