Description: This command switches to another window identified by a unique popup text, handle index (1,2,3) or main window.
Usage Scenarios:
A- Suppose we want to open Reference app on 3 windows and switch from the 3rd window to the second and then to the main window.
Procedure: Define a Goto_URL step as your starting point and two steps with Execute_Javascript for the navigation of the second and third windows using the code:
Code Block |
---|
window.open("https://reference.subject-7.com"); |
After that, use Switch_Window steps after the last navigation step which opens the second window and a final step which opens the main window. Your steps will look like this: