Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

At timesSometimes, a user has may need to switch between different tabs or windows in a single session to complete tasks or perform a few steps when while testing Application under Test (AUT). In order to perform any activity across pages, the user has to switch the control to desire the desired window/tab first and then perform action on it. This can be tackled in Qualitia using two different actions; StoreWindowHandle and SelectPage.

The window handle is a unique hexadecimal ID of the page being used to perform web application testing. Qualitia gives provides provision to store and use these IDs as per the requirements to switch between multiple pages of the AUT.

...

In order to perform this workflow, add steps as per the screenshot mentioned shown below.

StoreWindowHandleImage RemovedImage Added


Action ParametersDescription
1OpenURL

https://google.co.in

Opens Google home page.

2

StoreWindowHandle

“Page1”

Stores the window handle (a unique page

id

ID) of Google home page under the key name “Page1”.

3PressKeys“~{F1~}”

Stimulates F1 key and opens the help page.

4StoreWindowHandle“Page2”

Stores the window handle of the Help page under the key name “Page2”.

5SelectPage“{Page2}”

Selects the page whose ID we have given in the parameter section to perform further actions.

6PressKeys
“~{Ctrl+W~}”

“~^w”

Stimulates (Ctrl+W) key and closes the help page.

The mechanism of StoreWindowHandle works as shown above, where you have to store Handles for every single window the application is opening into, even if you desire to switch to nth window.

This way you can switch between as many pages as you want as per the test case requirements. You just have to use the correct key to navigate to the respective page, then select objects from that page to perform steps.