You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
The following C# code fails unless you comment out the lines which remove the first iframe.
IWebDriver driver = new PhantomJSDriver();
driver.Navigate().GoToUrl(@"file:///C:/dank/test.html");
//var frame1 = driver.FindElement(By.CssSelector("#first"));
//(driver as IJavaScriptExecutor).ExecuteScript("arguments[0].remove()", frame1);
var frame = driver.FindElement(By.CssSelector("#second"));
driver.SwitchTo().Frame(frame);
var div = driver.FindElement(By.TagName("div"));
Console.WriteLine(div.Text);
driver.Quit();
The text was updated successfully, but these errors were encountered:
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!
PhantomJS cannot switch to the correct iframe if two iframes share the same name attribute.
Example HTML:
The following C# code fails unless you comment out the lines which remove the first iframe.
The text was updated successfully, but these errors were encountered: