Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typing in a IFrame with Selenium IDE

I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this.

Thanks a lot!

like image 554
Gabriel Quesada Avatar asked Jan 18 '23 16:01

Gabriel Quesada


2 Answers

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.

like image 50
rs79 Avatar answered Jan 21 '23 05:01

rs79


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

like image 39
Jackson Lee Avatar answered Jan 21 '23 07:01

Jackson Lee