<iframe width="100%" scrolling="yes" height="100%" frameborder="0" src="/detail.aspx=" name="displayIFrame"></iframe>
<html>
<head>
<frameset framespacing="1" onload="ScrollToAnchor('text', 'Docln', false); if (document.all) {var h = doccontext.document.all.docContextContentDiv.offsetHeight; document.body.rows = h + ',*,22';}" rows="95,*,22" >
<frame scrolling="no" title="Heading frame" src="head.aspx" name="head"></frame>
<frame scrolling="yes" title="Content frame" src="content.aspx" name="text"></frame>
<frame scrolling="no" title="Footer frame" src="footer.aspx" name="footer"></frame>
</frameset>
I have something like:
Selenium.SelectFrame("displayIFrame");
Selenium.SelectFrame("head");
Selenium.SelectFrame("text"); // I get "ERROR: Not a frame: text"
Why am I getting ERROR: Not a frame: text From the html code above, "text" is the name of the frame I'm trying to select. Seems like I'm doing everything right. Please help me out.
You could try selecting the top frame before selecting the others, like this:
Selenium.SelectFrame("relative=top");
Selenium.SelectFrame("head");
Selenium.SelectFrame("relative=top");
Selenium.SelectFrame("text");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With