I run a testsuite that runs many macros that load into a new tab every time, at the end of the testsuite I would like you to return to the 1 tab of firefox absolutely.
Probably I need the javascript, can someone help me find a solution to return to the 1 tab of firefox ?
I can’t use the selectWindow command tab-0 because the testsuite loads each macro into a new tab and ui vision cannot return to the 1 tab of firefox (the first one opened on the left).
If you know what order the tests are being run in you could always tab= -1 for the first test then tab= -2 for the second test.
You could also have a CSV file that continues “variable” counting up the value which could correlate to the number of tabs and go back kind of how I suggested in the first idea.
You could also open the first webpage (the one you want to keep going back to) in a new window and keep switching back to that window
Lastly, you could have a: selectwindow | tab=-1 in a looping script which exits on an error which occurs when you can’t go back any tabs