如何编写嵌入在

发布于 2024-08-23 16:12:40 字数 173 浏览 3 评论 0原文

我正在使用 Firefox,并且我有一个带有标签的页面。 从正常的“查看页面源代码”选项中无法看到嵌入此标签的内容。所以我安装了 Firebug 插件,我可以使用 Firebug 查看内容。我的问题是,我无法使用 FireWatir 编写这些元素的脚本。有人知道如何使用 Firewatir 做到这一点吗?我们将非常感谢您的帮助。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光无声 2024-08-30 16:12:40

仅当 iframe 页面来自同一域时,您才能编写脚本。如果是这样,您可以通过执行 iframe.contentDocument 来访问 iframe 的文档。您还可以通过执行 iframe.contentWindow 来访问 iframe 的窗口:

https://developer.mozilla.org/en/HTML/Element/iframe

You can only script the iframe's page if it comes from the same domain. If so, you can access the iframe's document by doing iframe.contentDocument. You can also access the iframe's window by doing iframe.contentWindow:

https://developer.mozilla.org/en/HTML/Element/iframe

望她远 2024-08-30 16:12:40

Watir 和 FireWatir 不应该有框架问题。请查看 Watir wiki 上的 Frames 页面了解更多信息。

你没说是什么问题。一些相关的 HTML 和您的 Watir 代码会有所帮助。

我还建议您也将其发布到 Watir 列表

Watir and FireWatir should not have problems with frames. Take a look at Frames page at Watir wiki for more information.

You did not say what is the problem. Some relevant HTML and your Watir code would help.

I would also suggest that you post this at Watir list too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文