Hi, open a window, click a link in the window, but I want to look the old window. How can I do?
Hello,
You could probably use Switch To Window Index function.
To return to the first windows that was opened you could use
WebUI.switchToWindowIndex(0)
Where 0 indicates the first window that was opened
Best regards
Ismar
1 Like
It work well in Chrome, but don’t well in Firefox.
It should work in both Chrome and Firefox. Maybe your new page has not loaded before you call switchToWindowsIndex function. Try putting some delay before the function:
WebUI.delay(10)
WebUI.switchToWindowIndex(0)