# Unable to switchToWindowIndex on Apple devices from Browserstack

**URL:** <https://forum.katalon.com/t/unable-to-switchtowindowindex-on-apple-devices-from-browserstack/13152>\
**Category:** Miscellaneous\
**Created:** [September 11, 2018, 2:06pm UTC](https://forum.katalon.com/t/unable-to-switchtowindowindex-on-apple-devices-from-browserstack/13152 "2018-09-11T14:06:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marian\_Finariu](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Marian\_Finariu](https://forum.katalon.com/u/Marian_Finariu)\
**Post date:** [September 11, 2018, 2:06pm UTC](https://forum.katalon.com/t/unable-to-switchtowindowindex-on-apple-devices-from-browserstack/13152/1 "2018-09-11T14:06:27Z")

</div>

Hi,

I have a problem with switching tabs on iPhone devices from browserstack tool. I have to complete a form and then to press a button that must redirect to another page. I have tried with following piece of code to get on that page, but currently on iPhone devices is not working.

int windowIndex = WebUI.getWindowIndex()

WebUI.switchToWindowIndex(windowIndex + 1)  
The test will fail with following error message:  
Cannot find window with index: ‘1’  
Unable to switch to window with index: ‘1’.

For Android and Desktop browsers is working.

Has anyone had this problem and found a solution?

Thanks in advance.

---

<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:07am UTC](https://forum.katalon.com/t/unable-to-switchtowindowindex-on-apple-devices-from-browserstack/13152/2 "2022-08-08T07:07:16Z")

</div>

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


