How do I close tab in Katalong Recorder?

How do I close tab in Katalong Recorder?

Have a read through this - it might help

https://docs.katalon.com/katalon-studio/docs/webui-close-window-index.html#description-

thanks == [error] Unknown command: WebUI.closeWindowUrl(’’) << that’s what I get when putting that into the command section of the recorder

other apps like can’t can use the following

TAB=CLOSE

yeah sorry i meant to delete that - use the WebUI.closeWindowIndex instead, read through the document i sent- it should make more sense

WebUI.closeWindowIndex(1)

WebUI.delay(1)

WebUI.switchToWindowIndex(0)

WebUI.delay(1)

In Katalon Recorder there is the close command, which, according to the reference:

Simulates the user clicking the “close” button in the titlebar of a popup window or tab.

This very simple script opens up another window, switches to it, then closes it

open | http://forum.katalon.com/c/katalon-recorder | |
openWindow | http://forum.katalon.com/t/how-do-i-close-tab-in-katalong-recorder/20316 | winID |
selectWindow | winID | |
close | | |
1 Like

Thanks – let me get this right using

close

in the Command bar should close the tab right?

Yes, according to my test it should. Here’s a screenshot of my test


Note that I haven’t tried it with a tab, but the reference implies that it should work OK

1 Like