How do I close tab in Katalong Recorder?


#1

How do I close tab in Katalong Recorder?


#2

Have a read through this - it might help


#3

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


#4

other apps like can’t can use the following

TAB=CLOSE


#5

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)


#6

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 | https://forum.katalon.com/c/katalon-recorder | |
openWindow | https://forum.katalon.com/t/how-do-i-close-tab-in-katalong-recorder/20316 | winID |
selectWindow | winID | |
close | | |

#7

Thanks – let me get this right using

close

in the Command bar should close the tab right?


#8

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