diff --git a/src/Tests/Riganti.Selenium.Core.Samples.Tests/BrowsersStabilityUiTests.cs b/src/Tests/Riganti.Selenium.Core.Samples.Tests/BrowsersStabilityUiTests.cs index eac552b2..d16d6013 100644 --- a/src/Tests/Riganti.Selenium.Core.Samples.Tests/BrowsersStabilityUiTests.cs +++ b/src/Tests/Riganti.Selenium.Core.Samples.Tests/BrowsersStabilityUiTests.cs @@ -80,13 +80,14 @@ public void SelectMethod_InvalidXPathSelector_ExpectedException() var elem = browser.Single("#span"); elem.Single("///***-*///@@##@šš+š++++---><<>''", By.XPath); }); - throw new System.Exception("SelectMethod_InvalidXPathSelector_ExpectedException was supposed to fail!!!"); } catch (System.Exception) { // ignore // reason: Firefox driver and Chrome driver throw different exceptions + return; } + throw new System.Exception("SelectMethod_InvalidXPathSelector_ExpectedException was supposed to fail!!!"); } } } \ No newline at end of file