Clean() public method

Cleans this Firefox profile.
If this profile is a named profile that existed prior to launching Firefox, the Clean method removes the WebDriver Firefox extension. If the profile is an anonymous profile, the profile is deleted.
public Clean ( ) : void
return void
        public void Run_once_before_anything()
        {
            var profile = new FirefoxProfile();
            profile.Clean();
            var exe = new FirefoxBinary();
            browser = new FirefoxDriver(exe, profile);

            wait =
                new WebDriverWait(browser,
                    TimeSpan.FromSeconds(10));
        }
Esempio n. 2
0
 public void TearDown()
 {
     profile.Clean();
 }