Skip to content

How do I open a new window

This example demonstrates how to open a new window with a given URL.

In the solution shown below, you will see a new window is opened for launching HICC application using "openWindow" command and this new window is selected using "selectWindow" command.

Solution:

# Command Target Value
Launch the HICC Production URL
1 openWindow www.eureqatest.com/training/insurancecal/prod.html  
If multiple windows are launched, to change the focus of the window, you can use the below command
2 selectWindow index=0  

Tips, Tricks, Gotchas & Best Practices:  

  • If the window is launched for first time then the focus is automatically shifted to this window. However, if multiple windows are launched, then you can use "selectWindow" to change the focus of the window.
  • The "selectWindow" takes parameters as index (index starts from 0), title, or name of the window. You can navigate back to the parent window when you give index=-1 or null.

Feedback and Knowledge Base