Use "Click model button" test step of ATF
Import
·
Oct 21, 2019
·
article
This describes how to use “Click Model Button” test step of ATF. Deleting an Incident is the used test case. Please note that I have used only the required steps to explain the clicking model button step.
Scenario
- Create Incident
- Open the created Incident
- Click “Delete” button of Incident form
- Click “Delete” button of confirmation pop up window
ATF Test Steps
How to find the “Model Window” and Name of the “Model Button”
First, we should find a scenario where we can see a pop-up window such as “Deleting an Incident”
- Click on the button which displays a model window
- Make sure pop-up window is visible as mentioned below
3. Right Click on the page and click “Inspect Element(Q)”
- Find the id of the model window from “Inspector” by clicking on the pop-up window
- Click on the button in the pop-up window and find the id of that button from the inspector.
View original source
https://www.servicenow.com/community/developer-articles/use-quot-click-model-button-quot-test-step-of-atf/ta-p/2308654