intern Functional Testing with Frames

為{幸葍}努か 提交于 2019-12-11 12:35:33

问题


I'm using the intern and writing some functional tests. The application I am testing uses a lot of Dojo tabs and iframes and I'm having some trouble navigating around with my functional tests.

I can select the iframes using the "frame()" call and this is fine for accessing the nested iframes. However how do I navigate back up? Selenium WebDriver has a defaultContent to return you to the top most frame but I can't find an implementation of this in the Intern WD.

The problem I am having is that I navigate down into a nested iframe and click a button which switches to a different Dojo tab in a higher frame. I can see the browser loading and switching to the new tab but intern is still stuck on the same nested iframe and I can't navigate back up.

Thanks


回答1:


Passing null as the frame identifier switches back to the page’s default content.



来源:https://stackoverflow.com/questions/22298840/intern-functional-testing-with-frames

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!