mardi 26 mai 2015

Firefox crash when I run sellenium unit test

I start use Sellenium.WebDrive (v2.45) to run visual tests. As web driver I use FirefoxDriver. I have installed Firefox 38. When I try run test firefox return exception with message "FF has stopped working."

Anyone any sugesstion, it worked in previous week, is it possible that my test was creashed by updated?

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: Firefox.exe
  Application Version:  38.0.1.5611
  Application Timestamp:    55540a1a
  Fault Module Name:    xul.dll
  Fault Module Version: 38.0.1.5611
  Fault Module Timestamp:   55541969
  Exception Code:   c0000005
  Exception Offset: 0035669b
  OS Version:   6.3.9600.2.0.0.16.7
  Locale ID:    1033
  Additional Information 1: 5861
  Additional Information 2: 5861822e1919d7c014bbb064c64908b2
  Additional Information 3: a10f
  Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

There is my test method body

    [Fact]
    public void ShouldLoginForTestAccount()
    {
        var driver = new FirefoxDriver();
        driver.Manage().Cookies.DeleteAllCookies();
        driver.Navigate().GoToUrl(LoginPage);

        driver.FindElementById("Login")
            .SendKeys("correctLogin");
        driver.FindElementById("Password")
            .SendKeys("correctPassword");

        driver.FindElementByTagName("button")
            .Click();

        Assert.Equal(TestingProjectUrl, driver.Url);

        driver.Close();
    }

Aucun commentaire:

Enregistrer un commentaire