Good day.

In a web application, when deleting a position from the list, a confirmation-window pops up, requiring confirmation of the action. In the AutoTest code, the area processing the window is as follows:

SetMethods.ClickElement(By.Id(General.StitchId(button_combine, childPosition))); //ΠΊΠ»ΠΈΠΊ ΠΏΠΎ ΠΊΠ½ΠΎΠΏΠΊΠ΅ удалСния записи WaitUntilSmth.WaitLittle.Until(ExpectedConditions.AlertIsPresent()); //ΠΆΠ΄Π΅ΠΌ окошко Driver.browser.SwitchTo().Alert().Accept(); 

Two days ago, all tests were run without errors. Yesterday, on the local machine, the test began to fall on ExpectedConditions.AlertIsPresent() with the following error:

 The HTTP request to the remote WebDriver server for URL http://localhost:54623/session/4d597cd674e654ace5ac79c9a516cd61/alert_text timed out after 60 seconds. System.Exception {OpenQA.Selenium.WebDriverException} 

Stacktrace:

 OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:55632/session/b4277da23ac26cc6ce309e5a35c231a8/alert_text timed out after 60 seconds. ----> System.Net.WebException : Запрос Π±Ρ‹Π» ΠΏΡ€Π΅Ρ€Π²Π°Π½: ВрСмя оТидания ΠΎΠΏΠ΅Ρ€Π°Ρ†ΠΈΠΈ истСкло. Π² OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request) Π² OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) Π² OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) Π² OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) Π² OpenQA.Selenium.Remote.RemoteTargetLocator.Alert() Π² OpenQA.Selenium.Support.UI.ExpectedConditions.<AlertIsPresent>b__4c(IWebDriver driver) Π² OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition) Π² Expo2.Utility.General.AcceptAlert() Π² g:\Git\expo-2\Tests\NewSeleniumTests\Expo2\Utility\General.cs:строка 144 Π² Expo2.Tests.Catalogs.Support.DeleteChild(String Name, String subMenu, String subSubMenu, String elementText, Int32 childNumber, String[] button_combine) Π² g:\Git\expo-2\Tests\NewSeleniumTests\Expo2\Tests\Catalogs\Support.cs:строка 143 Π² Expo2.Tests.Catalogs.ActivitiesTest.DeleteChild(String elementText, Int32 childNumber) Π² g:\Git\expo-2\Tests\NewSeleniumTests\Expo2\Tests\Catalogs\ActivitiesTest.cs:строка 123 Π² Expo2.Tests.Catalogs.ActivitiesTest.FullTestActivities() Π² g:\Git\expo-2\Tests\NewSeleniumTests\Expo2\Tests\Catalogs\ActivitiesTest.cs:строка 181 --WebException Π² System.Net.HttpWebRequest.GetResponse() Π² OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request) 

At the same time, when a test server is deployed to the test server, all tests are still performed without complaints. On local machines fall.

Changes to the tests were not made, the developers did not rule.

  • Chrome Browser 52.0.2743.116
  • Selenium WebDriver 2.53.1
  • C # tests
  • chromedriver 2.23 (versions 2.10 and 2.22 were also tried)

Has anyone encountered a similar situation?

Thank!

    0