Skip to content

Commit

Permalink
Switching test to new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Feb 19, 2024
1 parent abf35a2 commit aefb719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/test/common/ElementFindingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ public void AnElementFoundInADifferentFrameIsStale()
driver.SwitchTo().Frame("inner");
IWebElement element = driver.FindElement(By.Id("oneline"));
driver.SwitchTo().DefaultContent();
Assert.That(() => { string foo = element.Text; }, Throws.InstanceOf<StaleElementReferenceException>());
Assert.That(() => { string foo = element.Text; }, Throws.InstanceOf<NoSuchElementException>());
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit aefb719

Please sign in to comment.