Typing in a IFrame with Selenium IDE

删除回忆录丶 提交于 2019-12-04 14:54:13

You have to select the iframe and then type

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

The statements are in java, but you should be able to find selectFrame and type in the IDE.

You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id.

Try

<tr> 
    <td>selectFrame</td> 
    <td>edit</td> 
    <td></td> 
</tr> 
<tr> 
    <td>type</td> 
    <td>xpath=//html/body</td> 
    <td>my text</td> 
</tr> 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!