Skip to content

Commit ebd897a

Browse files
committed
Updating .NET tests to account for new IE click intercepted behavior
1 parent 2bf3e92 commit ebd897a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dotnet/test/common/CorrectEventFiringTest.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ public void ClickEventsShouldBubble()
379379
}
380380

381381
[Test]
382-
[IgnoreBrowser(Browser.IE, "IE doesn't support detecting overlapped elements")]
383382
public void ClickOverlappingElements()
384383
{
385384
if (TestUtilities.IsOldIE(driver))
@@ -388,8 +387,7 @@ public void ClickOverlappingElements()
388387
}
389388

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

395393
[Test]
@@ -422,8 +420,9 @@ public void ClickPartiallyOverlappingElements()
422420
}
423421

424422
[Test]
425-
[IgnoreBrowser(Browser.Firefox)]
426-
[IgnoreBrowser(Browser.Chrome)]
423+
[IgnoreBrowser(Browser.IE, "Driver checks for overlapping elements")]
424+
[IgnoreBrowser(Browser.Firefox, "Driver checks for overlapping elements")]
425+
[IgnoreBrowser(Browser.Chrome, "Driver checks for overlapping elements")]
427426
[IgnoreBrowser(Browser.Safari)]
428427
public void NativelyClickOverlappingElements()
429428
{

0 commit comments

Comments
 (0)