【发布时间】:2014-07-25 11:08:13
【问题描述】:
html页面结构如下:
<html>
<body>
<iframe id="iframe-id">
#document
<html>
<body contenteditable="true">
</body>
</html>
</iframe>
</body>
</html>
我想在 contenteditable 正文中键入一些文本。
我尝试使用下面的代码,但无法填充可编辑区域。
selenium.selectFrame("//*[@id='iframe-id']");
selenium.type("//[@contenteditable='true']", "some text");
【问题讨论】:
标签: java iframe selenium types selenium-rc