iframe - 使用 Selenium IDE 输入 IFrame

标签 iframe selenium selenium-rc selenium-ide typing

我想用 Selenium IDE 在 IFrame 中输入一些东西,但我不知道如何做到这一点。

非常感谢!

最佳答案

您必须选择 iframe,然后键入

selenium.selectFrame("css=iframe.widget[<a_css_identifier>]");
selenium.type(<your_object_or_text_box>, <typed_content>);

这些语句是在 java 中的,但您应该能够找到 selectFrametype在 IDE 中。

关于iframe - 使用 Selenium IDE 输入 IFrame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7515981/

相关文章:

windows-services - 将 Selenium RC 作为 Windows 服务运行

javascript - 如何根据iframe内容从父窗口触发事件?

jquery - Python & Selenium 无法在日期选择器中选择日期

unit-testing - Selenium 等待下载?

java - 通过 Selenium 访问时,DOM 未填充到 PhantomJS 中

c# - 如何在 Selenium 中获取脚本标签的内容

junit - 为什么selenium通过Xpath定位元素在IE中失败,但在firefox中却可以正常工作?

node.js - "in a frame because it set ' X-Frame-Options ' to ' sameorigin '."在 Node APP中

css - 如何在iframe中定位图像

javascript - 写入父项 > iFrame 的 > iFrame 内容