In our application, we have “Select Staff” button in Record Request(Parent Window) Page , if we click the “Select Staff” button a new popup window as another window screen (as child window)
Please find the Application Screenshot:
While recording test case,
- we have clicked select staff Button , a new child window is opened .
- In new child window we are performing some operation .
Please find Test script generation for above actions…
FYI, we are facing two kind of issue from the above generated Script ,
- Expected child window name is “Staff Search” but the script actually generating window name as Record Request which as Parent window name .
Parent window title name : “Record Request”
Child window title name : “Staff Search”
- “switchToWindowTitle()” method is generated before the click action (Clicking select staff Button )performed for “clicking select staff” button
Please guide me to find the solution so that script need not to be changed once recording is done!