[WebUI] Switch To Window Index


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/webui-switch-to-window-index.html

I am not able to upload file through Katalon studio please help

Is there ever going to be a webUI command for open new tab?
Switch to an existing new tab is useful but in order to generate the new tab you have to use some pretty clunky methods detailed in the discussion below.

Another Method :upside_down_face:

//Open New Tab
WebUI.executeJavaScript(‘window.open();’, [])

currentWindow = WebUI.getWindowIndex()

//Go To New Tab

WebUI.switchToWindowIndex(currentWindow + 1)

3 Likes

Below tutorial helps on the same with practical example