I am using Firefox and i have a page which has an Tag. The contents embedded within this tag cannot be seen from normal "View Page source" option. So i installed Firebug plugin and i can get see the contents using Firebug. My issue is, i cannot script any of these elements using FireWatir. Anybody has any ideas how to do this using Firewatir? Your help would be greatly appreciated.
2 回答
1
如果 iframe 的页面来自同一个域,则您只能编写该页面的脚本。如果是这样,您可以通过执行来访问 iframe 的文档iframe.contentDocument。您还可以通过执行以下操作访问 iframe 的窗口iframe.contentWindow:
于 2010-03-01T07:48:53.930 回答
0
Watir 和 FireWatir 不应该有框架问题。查看Watir wiki上的Frames页面了解更多信息。
你没有说是什么问题。一些相关的 HTML 和您的 Watir 代码会有所帮助。
我还建议您也将其发布在Watir list上。
于 2010-03-01T09:51:37.860 回答