Skip to content

Commit

Permalink
Updating .NET tests to account for new IE click intercepted behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Mar 10, 2018
1 parent 2bf3e92 commit ebd897a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dotnet/test/common/CorrectEventFiringTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ public void ClickEventsShouldBubble()
}

[Test]
[IgnoreBrowser(Browser.IE, "IE doesn't support detecting overlapped elements")]
public void ClickOverlappingElements()
{
if (TestUtilities.IsOldIE(driver))
Expand All @@ -388,8 +387,7 @@ public void ClickOverlappingElements()
}

driver.Url = EnvironmentManager.Instance.UrlBuilder.WhereIs("click_tests/overlapping_elements.html");
var ex = Assert.Throws<WebDriverException>(() => driver.FindElement(By.Id("under")).Click());
Assert.That(ex.Message.Contains("Other element would receive the click"));
Assert.That(() => driver.FindElement(By.Id("under")).Click(), Throws.InstanceOf<WebDriverException>().With.Message.Contains("Other element would receive the click"));
}

[Test]
Expand Down Expand Up @@ -422,8 +420,9 @@ public void ClickPartiallyOverlappingElements()
}

[Test]
[IgnoreBrowser(Browser.Firefox)]
[IgnoreBrowser(Browser.Chrome)]
[IgnoreBrowser(Browser.IE, "Driver checks for overlapping elements")]
[IgnoreBrowser(Browser.Firefox, "Driver checks for overlapping elements")]
[IgnoreBrowser(Browser.Chrome, "Driver checks for overlapping elements")]
[IgnoreBrowser(Browser.Safari)]
public void NativelyClickOverlappingElements()
{
Expand Down

0 comments on commit ebd897a

Please sign in to comment.