From 5ea516de9dbfa081b2c29a012faaf174d652a712 Mon Sep 17 00:00:00 2001 From: Jim Evans Date: Tue, 6 Mar 2018 08:18:43 -0800 Subject: [PATCH] Updating .NET VisibilityTest to handle new exception class hierarchy --- dotnet/test/common/VisibilityTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet/test/common/VisibilityTest.cs b/dotnet/test/common/VisibilityTest.cs index 5facc3d7a8361..d01a878ccb3a4 100644 --- a/dotnet/test/common/VisibilityTest.cs +++ b/dotnet/test/common/VisibilityTest.cs @@ -77,7 +77,7 @@ public void ShouldNotBeAbleToClickOnAnElementThatIsNotDisplayed() { driver.Url = javascriptPage; IWebElement element = driver.FindElement(By.Id("unclickable")); - Assert.Throws(() => element.Click()); + Assert.Throws(() => element.Click()); } [Test] @@ -86,7 +86,7 @@ public void ShouldNotBeAbleToTypeAnElementThatIsNotDisplayed() { driver.Url = javascriptPage; IWebElement element = driver.FindElement(By.Id("unclickable")); - Assert.Throws(() => element.SendKeys("You don't see me")); + Assert.Throws(() => element.SendKeys("You don't see me")); Assert.AreNotEqual(element.GetAttribute("value"), "You don't see me"); } @@ -97,7 +97,7 @@ public void ShouldNotBeAbleToSelectAnElementThatIsNotDisplayed() { driver.Url = javascriptPage; IWebElement element = driver.FindElement(By.Id("untogglable")); - Assert.Throws(() => element.Click()); + Assert.Throws(() => element.Click()); } [Test]