# Switch iframe doesnt work

**URL:** <https://forum.katalon.com/t/switch-iframe-doesnt-work/12363>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [August 2, 2018, 1:31pm UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363 "2018-08-02T13:31:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hu\_yu\_qi](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@hu\_yu\_qi](https://forum.katalon.com/u/hu_yu_qi)\
**Post date:** [August 2, 2018, 1:31pm UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363/1 "2018-08-02T13:31:05Z")

</div>

Hi guys,

I used Switch to Frame function to jump into an iframe page, but I failed. I tried to use id/class/xpath/css.., all of them dont work. Could you give me some idea on this case?

Error Message:

Unable to send keys ‘test’ to object ‘Object Repository/SearchMessage/Page\_/input\_message’ (Root cause: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: ‘Object Repository/SearchMessage/Page\_/input\_message’ located by ‘By.xpath: //\*[@id = ‘showIframe’ and @name = ‘showIframe’]’ not found)

Thanks in advance,  
Ricky

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [August 2, 2018, 2:15pm UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363/2 "2018-08-02T14:15:30Z")

</div>

The error message is saying there is not element with that ID and that NAME. Are you certain the iframe has that id?

---

<div class="post-metadata">

**Author:** ![hu\_yu\_qi](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@hu\_yu\_qi](https://forum.katalon.com/u/hu_yu_qi)\
**Post date:** [August 3, 2018, 1:52am UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363/3 "2018-08-03T01:52:20Z")

</div>

Thank you, Thomas

Issue resolved, I found the reason. I used spy web to record the page, including iframe page and one element in iframe. Then I used keyword switch to frame and then send key to the element, I switched to iframe successfully in fact. But I didnt notice in element Object, there is a option ‘Parent iframe’, it will cause the action switch to frame to be executed again, so I select ‘no’ action. It works.

---

<div class="post-metadata">

**Author:** ![nam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nam/32/379_2.png) [@nam](https://forum.katalon.com/u/nam)\
**Post date:** [May 3, 2019, 9:21am UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363/4 "2019-05-03T09:21:51Z")

</div>

Hi Hu\_yu

How can i make a keyword switch to frame ?  
I got a issue at step : **Switch to frame**

 ![Iframe_switch](https://europe1.discourse-cdn.com/katalon/original/2X/c/c49fd2423206ba350a3542fbcf1c9c3955a1c016.jpeg)

Can you help me

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:49am UTC](https://forum.katalon.com/t/switch-iframe-doesnt-work/12363/5 "2022-08-08T07:49:14Z")

</div>

Archived on August 8, 2022, 7:49am UTC


