From 1f1c68011bd58ce9f37946a1e28a8d0753af350e Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Tue, 8 Nov 2016 15:50:45 +0100 Subject: [PATCH] Added try catch for workaround problem with IE test --- .../PageObjects/TheInternet/FormAuthenticationPage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Objectivity.Test.Automation.Tests.PageObjects/PageObjects/TheInternet/FormAuthenticationPage.cs b/Objectivity.Test.Automation.Tests.PageObjects/PageObjects/TheInternet/FormAuthenticationPage.cs index b28f000ea..37afef145 100644 --- a/Objectivity.Test.Automation.Tests.PageObjects/PageObjects/TheInternet/FormAuthenticationPage.cs +++ b/Objectivity.Test.Automation.Tests.PageObjects/PageObjects/TheInternet/FormAuthenticationPage.cs @@ -87,6 +87,7 @@ public void LogOn() } catch (UnhandledAlertException) { + Logger.Debug(CultureInfo.CurrentCulture, "catching UnhandledAlertException, Workaround problem with IE test"); this.Driver.SwitchTo().Alert().Accept(); this.Driver.GetElement(this.loginButton).Click(); }