Skip to content

Commit

Permalink
[dotnet] duplicate test from StaleElementReferenceTest file
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jul 12, 2023
1 parent 35f080a commit 296d86a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dotnet/test/common/ElementFindingTest.cs
Expand Up @@ -945,18 +945,6 @@ public void ShouldBeAbleToClickOnLinksWithNoHrefAttribute()
Assert.AreEqual("Changed", driver.Title);
}

[Test]
public void RemovingAnElementDynamicallyFromTheDomShouldCauseAStaleRefException()
{
driver.Url = javascriptPage;

IWebElement toBeDeleted = driver.FindElement(By.Id("deleted"));
Assert.That(toBeDeleted.Displayed, "Element is not displayed");

driver.FindElement(By.Id("delete")).Click();
Assert.That(() => { bool displayedAfterDelete = toBeDeleted.Displayed; }, Throws.InstanceOf<StaleElementReferenceException>());
}

[Test]
public void FindingByTagNameShouldNotIncludeParentElementIfSameTagType()
{
Expand Down

0 comments on commit 296d86a

Please sign in to comment.