Note that there are some explanatory texts on larger screens.

plurals
  1. POSecond testMethod failing Selenium C#
    text
    copied!<p>Here's my code : </p> <pre><code>[TestInitialize] public void init() { _browser = new DefaultSelenium("localhost", 4444, @"*iehta", "http://localhost:4444"); } [TestMethod] public void TestLogin() { bool hasText; _browser.Start(); _browser.Open("http://localhost/testSite.asp"); _browser.Type("id=NomUtilisateur", "admin"); _browser.Type("id=UserPassword", "password"); _browser.Click("name=Submit"); _browser.WaitForPageToLoad("30000"); hasText = _browser.IsTextPresent("test"); Assert.IsTrue(hasText, @"The search result does not contain text ""test""."); } [TestMethod] public void TestRequisitionPhotocopie() { _browser.Start(); _browser.Open("http://localhost/testSite.asp"); _browser.Type("id=NomUtilisateur", "admin"); _browser.Type("id=UserPassword", "password"); _browser.Click("name=Submit"); _browser.WaitForPageToLoad("30000"); _browser.Click("link=lnkTest"); _browser.WaitForPageToLoad("30000"); } [TestCleanup] public void clean() { _browser.Stop(); //_browser.Close(); } </code></pre> <p>If I run the two test method, the secon test always fail with an error message like this : Remote server don't exist or is unavaible</p> <p>If I comment one of the test method, it's working, my two test method are working</p> <p>Where's my mistake.</p> <p>Thanks</p> <p>EDIT : The error is not happening everytime, but the error is in Selenium Remote Control If i debug the error is in selenium-browserbot.js at line 724 : windowToModify.seleniumAlert = windowToModify.alert;</p> <p>Selenium log console have nothing in it</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload