In desktop testing how to swtch from a window to a tab within that window. Challange is the inspect show same locator for all the tabs with in the window

I have tried the below code

Windows.Switchtodesktop()
Windows.Switchtowindow(mywindow)

for(i=0;i<5i++)
Windows.Keys.chord(Keys.CONTROL,Keys.Tab)
//which i visually see taking me to 5thtab)
//After this it failing from below step as null pointer
Windows. Switchtowindow(tab5)
Windows.Verifyelement(tab5)

// I find that Windows.getWindowHandles().get(0), not tried yet but i dont see it i katalon this supports?

Hi,

I found this similar discussion: Switching between Tabs in Chrome issue - #6 by costea.georgian89 and please try their suggestion.

Sorry @Elly_Tran. The OP is inquiring about Windows Desktop testing. There are desktop applications that arrange similar options together in a container that have tabs that are either across the top of the panel or down the side. The image below is an example (from a school project) with tabs across the top.

image

However, the link you gave is for Web testing with browser tabs.

Edit: Maybe you can enquire with your “Windows Desktop” team and see if they have any suggestions?