We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de7be2 commit 7dd90fdCopy full SHA for 7dd90fd
dotnet/test/firefox/FirefoxDriverTest.cs
@@ -6,6 +6,7 @@
6
using System.Threading;
7
using System.Collections.ObjectModel;
8
using OpenQA.Selenium.Environment;
9
+using System.IO;
10
11
namespace OpenQA.Selenium.Firefox
12
{
@@ -80,6 +81,17 @@ public void ShouldBeAbleToStartANamedProfile()
80
81
}
82
83
84
+ [Test]
85
+ public void ShouldRemoveProfileAfterExit()
86
+ {
87
+ FirefoxProfile profile = new FirefoxProfile();
88
+ IWebDriver firefox = new FirefoxDriver(profile);
89
+ string profileLocation = profile.ProfileDirectory;
90
+
91
+ firefox.Quit();
92
+ Assert.IsFalse(Directory.Exists(profileLocation));
93
+ }
94
95
[Test]
96
[NeedsFreshDriver(BeforeTest = true, AfterTest = true)]
97
public void FocusRemainsInOriginalWindowWhenOpeningNewWindow()
0 commit comments