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!