# How do I record a test with iFrames?

**URL:** <https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186>\
**Category:** Miscellaneous\
**Created:** [July 11, 2017, 4:26pm UTC](https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186 "2017-07-11T16:26:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Don\_Pruitt](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@Don\_Pruitt](https://forum.katalon.com/u/Don_Pruitt)\
**Post date:** [July 11, 2017, 4:26pm UTC](https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186/1 "2017-07-11T16:26:13Z")

</div>

How do I record a test with iFrames? After logging in, our App provides an iFrame within a Telerik Rad Splitter. I cannot record anything from this point forward. I have tried pausing the test to navigate to the page outside the iFrame, but the test will not resume recording. I also tried pausing the test to set the iFrame in script, but cannot re-start the recording after I have stopped it to set the iFrame in script. What is the recemmended method for recording a test like this? I will literally have hundreds of test cases within the iFrame so I need a quick way to generate teh tests through recording. Thanks!

---

<div class="post-metadata">

**Author:** ![Arunkumar\_Ravikumar](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Arunkumar\_Ravikumar](https://forum.katalon.com/u/Arunkumar_Ravikumar)\
**Post date:** [July 11, 2017, 11:52pm UTC](https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186/2 "2017-07-11T23:52:08Z")

</div>

I managed to click some of the splitters using CSS selectors on the following page

[http://demos.telerik.com/aspnet-ajax/splitter/examples/collapseexpand/defaultcs.aspx](http://demos.telerik.com/aspnet-ajax/splitter/examples/collapseexpand/defaultcs.aspx)

CSS -selector

#RAD\_SPLITTER\_BAR\_COLLAPSE\_Backward\_ctl00\_ContentPlaceholder1\_RadSplitBar2

---

<div class="post-metadata">

**Author:** ![Arunkumar\_Ravikumar](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Arunkumar\_Ravikumar](https://forum.katalon.com/u/Arunkumar_Ravikumar)\
**Post date:** [July 11, 2017, 11:11pm UTC](https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186/3 "2017-07-11T23:11:59Z")

</div>

Trying to understand your issue, Are you facing issue with selecting elements while recording ? or

Are you having issue while running the recorded script? in the second case you would have to revisit the selectors for the UI elements under the Object repository.

Also could you please share some light on the specific control you are facing issue.

[http://demos.telerik.com/aspnet-ajax/splitter/examples/collapseexpand/defaultcs.aspx](http://demos.telerik.com/aspnet-ajax/splitter/examples/collapseexpand/defaultcs.aspx)

---

<div class="post-metadata">

**Author:** ![divya1](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@divya1](https://forum.katalon.com/u/divya1)\
**Post date:** [December 29, 2017, 7:26am UTC](https://forum.katalon.com/t/how-do-i-record-a-test-with-iframes/6186/4 "2017-12-29T07:26:58Z")

</div>

Am facing error while running this code snippet

As i capture the object using katalon tool and running this script ,1.

WebUI.switchToFrame(findTestObject(‘Page\_eFACiLiTY - Enterprise Facilit/iframe\_main’),GlobalVariable.G\_Timeout\_Small , FailureHandling.STOP\_ON\_FAILURE)

WebUI.click(findTestObject(‘Page\_eFACiLiTY - Enterprise Facilit/i\_fa fa-plus’))

Error description:  
12-29-2017 12:38:53 PM - [FAILED] - Unable to click on object ‘Object Repository/Page\_eFACiLiTY - Enterprise Facilit/iframe\_main’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_eFACiLiTY - Enterprise Facilit/iframe\_main’ located by ‘By.xpath: //iframe[count(. | //_[@id = ‘main’]) = count(//_[@id = ‘main’])][count(. | //_[@name = ‘main’]) = count(//_[@name = ‘main’])][count(. | //_[@src = ‘…/admin/ahome.html’]) = count(//_[@src = ‘…/admin/ahome.html’])]’ not found)  
12-29-2017 12:38:53 PM - [FAILED] - Test Cases/New Test Case-login FAILED because (of) Unable to click on object ‘Object Repository/Page\_eFACiLiTY - Enterprise Facilit/iframe\_main’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/Page\_eFACiLiTY - Enterprise Facilit/iframe\_main’ located by ‘By.xpath: //iframe[count(. | //_[@id = ‘main’]) = count(//_[@id = ‘main’])][count(. | //_[@name = ‘main’]) = count(//_[@name = ‘main’])][count(. | //_[@src = ‘…/admin/ahome.html’]) = count(//_[@src = ‘…/admin/ahome.html’])]’ not found)

How can i slove this issue?
