# How to (manually) work with iframes in Katalon

**URL:** <https://forum.katalon.com/t/how-to-manually-work-with-iframes-in-katalon/24459>\
**Category:** Tips and Tricks\
**Tags:** tips-tricks, katalon-studio\
**Created:** [May 3, 2019, 5:19pm UTC](https://forum.katalon.com/t/how-to-manually-work-with-iframes-in-katalon/24459 "2019-05-03T17:19:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [May 3, 2019, 5:19pm UTC](https://forum.katalon.com/t/how-to-manually-work-with-iframes-in-katalon/24459/1 "2019-05-03T17:19:00Z")

</div>

**I have found that the following works for me when working with iframes:**

1. Manually create a new iframe TestObject as follows:  
-Start Katalon Studio  
-Right click on ‘Object Repository’ from the left tree  
-Click New \> Test Object  
-Input Name= iframe01, click OK; iframe01 opens  
-Input the Attributes or Xpath to locate iframe01  
DO NOT tick the ‘Parent iframe’ property radio button  
Save

2. Manually create a new TestObject as follows:  
-Start Katalon Studio  
-Right click on ‘Object Repository’ from the left tree  
-Click New \> Test Object  
-Input Name= testObject1, click OK; testObject1 opens  
-Input the Attributes or Xpath to locate testObject1  
DO NOT tick the ‘Parent iframe’ property radio button  
Save

```auto
//Add the following to the body of the test case:
WebUI.switchToFrame(findtestObject('iframe01'), 30); //opens iframe01
WebUI.waitForElementVisible(findtestObject('testObject1'), 30);
WebUI.click(findtestObject('testObject1'));
//Other steps can go here...
WebUI.switchToDefaultContent(); //closes iframe01

```

---

<div class="post-metadata">

**Author:** ![jjcordova.ca](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jjcordova.ca](https://forum.katalon.com/u/jjcordova.ca)\
**Post date:** [June 27, 2019, 9:02pm UTC](https://forum.katalon.com/t/how-to-manually-work-with-iframes-in-katalon/24459/2 "2019-06-27T21:02:24Z")

</div>

Hi @Dave_Evers .

thanks, your information was very useful 🙂
