How to validate the pop UP window or Dialog window in the Automated test frame work?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 09:19 AM
How to validate the pop UP window or Dialog window in the Automated test frame work?
Scenario : we are trying to click the Reopen Incident UI Action button , that time pop UP or Dialog Window visible ,
then click the OK Button .
--> How to validate the Pop UP Window.
--> How to click the OK Button on the Pop UP Window.
Thanks
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 01:13 PM
Hi @ramuv ,
Hope you are doing great.
To validate the pop-up window:
- First, we need to identify the pop-up window's unique properties, such as the title, message, or any specific HTML attributes.
- Next, we'll use the ATF's test steps to interact with the UI and check if the pop-up window is visible.
- We can use an assertion in the test script to verify that the pop-up window is displayed on the screen.x
Sample code to validate the pop-up window:
// Assuming 'popUpElement' is a variable representing the pop-up window element
var isPopUpVisible = popUpElement.isVisible(); // Check if the pop-up window is visible
// Perform the validation
assert.isTrue(isPopUpVisible, "Pop-up window is visible on the screen");
To click the OK button on the pop-up window:
- Similar to the validation, we need to identify the OK button element using unique properties or HTML attributes.
- Then, we'll use ATF's test steps to interact with the UI and click the OK button.
Sample code to click the OK button on the pop-up window:
// Assuming 'okButtonElement' is a variable representing the OK button element
okButtonElement.click(); // Click the OK button on the pop-up window
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma
Regards,
Riya Verma