开发者

findElementRecursive not locating nested frame in IE8

开发者 https://www.devze.com 2023-02-09 01:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消