Skip to content

Commit

Permalink
[dotnet] Removing duplicated test
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 19, 2023
1 parent 7cd20cf commit 379dcab
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions dotnet/test/common/ElementFindingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -810,35 +810,6 @@ public void AnElementFoundInADifferentFrameIsStale()
Assert.That(() => { string foo = element.Text; }, Throws.InstanceOf<StaleElementReferenceException>());
}

[Test]
[IgnoreBrowser(Browser.Chrome, "https://bugs.chromium.org/p/chromedriver/issues/detail?id=4443")]
public void AnElementFoundInADifferentFrameViaJsCanBeUsed()
{
driver.Url = missedJsReferencePage;

try
{
driver.SwitchTo().Frame("inner");
IWebElement first = driver.FindElement(By.Id("oneline"));

driver.SwitchTo().DefaultContent();
IWebElement element = (IWebElement)((IJavaScriptExecutor)driver).ExecuteScript(
"return frames[0].document.getElementById('oneline');");


driver.SwitchTo().Frame("inner");

IWebElement second = driver.FindElement(By.Id("oneline"));

Assert.AreEqual(first, element);
Assert.AreEqual(second, element);
}
finally
{
driver.SwitchTo().DefaultContent();
}
}

/////////////////////////////////////////////////
// Tests unique to the .NET bindings
/////////////////////////////////////////////////
Expand Down

0 comments on commit 379dcab

Please sign in to comment.