title: Why do my tests fail when run together, but pass individually?
body: <p>When I write a test in Visual Studio, I check that it works by saving, building and then running the test it in Nunit (right click on the test then run).</p>
  
  <p>The test works yay...
  so I Move on...</p>
  
  <p>Now I have written another test and it works as I have saved and tested it like above. But, they dont work when they are run together.</p>
  
  <p>Here are my two tests that work when run as individuals but fail when run together:</p>
  
  <pre><code>using System;
  using NUnit.Framework;
  using OpenQA.Selenium.Support.UI;
  using OpenQA.Selenium;
  
  namespace Fixtures.Users.Page1
  {
      [TestFixture]
      public class AdminNavigateToPage1 : SeleniumTestBase
      {
          [Test]
          public void AdminNavigateToPage1()
          {
              NavigateTo&lt;LogonPage&gt;().LogonAsCustomerAdministrator();
              NavigateTo&lt;Page1&gt;();
              var headerelement = Driver.FindElement(By.ClassName("header"));
  
              Assert.That(headerelement.Text, Is.EqualTo("Page Title"));
              Assert.That(Driver.Url, Is.EqualTo("http://localhost/Page Title"));
          }
  
          [Test]
          public void AdminNavigateToPage1ViaMenu()
          {
              NavigateTo&lt;LogonPage&gt;().LogonAsCustomerAdministrator();
              Driver.FindElement(By.Id("menuitem1")).Click();
              Driver.FindElement(By.Id("submenuitem4")).Click();
              var headerelement = Driver.FindElement(By.ClassName("header"));
  
              Assert.That(headerelement.Text, Is.EqualTo("Page Title"));
              Assert.That(Driver.Url, Is.EqualTo("http://localhost/Page Title"));
          }
      }
  }
  </code></pre>
  
  <p>When the second test fails because they have been run together </p>
  
  <p><strong>Nunit presents this:</strong></p>
  
  <blockquote>
    <p>Sse.Bec.Web.Tests.Fixtures.ManageSitesAndUsers.ChangeOfPremises.AdminNavigateToChangeOfPremises.AdminNavigateToPageChangeOfPremisesViaMenu:
    OpenQA.Selenium.NoSuchElementException : The element could not be found</p>
  </blockquote>
  
  <p><strong>And this line is highlighted:</strong></p>
  
  <pre><code>var headerelement = Driver.FindElement(By.ClassName("header"));
  </code></pre>
  
  <p>Does anyone know why my code fails when run together, but passes when run alone? </p>
  
  <p>Any answer would be greatly appreciated!</p>