How to switch to the old window

Hi, open a window, click a link in the window, but I want to look the old window. How can I do?


You could probably use Switch To Window Index function.

To return to the first windows that was opened you could use


Where 0 indicates the first window that was opened

Best regards

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: