TestProject Forum

How do I switch to the new window while executing the test?

Here is my question to all community:
I am trying to log in with Google in Linkedin and When I click on Login with Google, it opens up a new window where I am doing all login activities. It has been recording all the steps. However, When I execute the test, it does not open the new window and throw the following error:

There is no such window with index 1, there are 1 window

Please help me with this.

Thank you in advance

Hello vaghelaprashant002,
When you are finishing your test and closing the new window,
Please try to use the following action in your test,


This should help with the focus shifting to the newly opened window.
And return it to the original one.
Let me know if the solved your issue