findElementRecursive not locating nested frame in IE8
I'm using Firefox and IE8 with Selenium for automated testing of a website. The issue that I'm facing is that when I run Selenium on IE8, Selenium is not able to locate a frame nested within another.
My frame layout looks like this -
<frameset id="myFrameset">
<frame name="frame1">Some Stuff</frame>
<frame name="frame2">
<frameset>
<frame name="nestedFrame2">Some nested Stuff</frame>
</frameset>
</frame>
</frameset>
As shown above, the "nestedFrame2" is within the "frame2" frame.
I select the top-level fram开发者_开发技巧e initially by doing selectFrame("relative=top"). After this, when I try to do selectFrame("nestedFrame2"), Selenium reports an error stating that it could not find the frame.
Any suggestions? This works fine on Firefox. I'm using selenium-server-1.0.3.jar
Thanks.
Have you tried
selectFrame('frame1')
windowFocus()
selectFrame('frame2')
windowFocus()
selectFrame('nestedFrame2')
windowFocus()
I think, it should work.
精彩评论