logo

NJP

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

  1. Create Incident
  2. Open the created Incident
  3. Click “Delete” button of Incident form
  4. Click “Delete” button of confirmation pop up window

ATF Test Steps

image

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”

  1. Click on the button which displays a model window

image

  1. Make sure pop-up window is visible as mentioned below

image

3. Right Click on the page and click “Inspect Element(Q)”

  1. Find the id of the model window from “Inspector” by clicking on the pop-up window

image

  1. Click on the button in the pop-up window and find the id of that button from the inspector.

image

View original source

https://www.servicenow.com/community/developer-articles/use-quot-click-model-button-quot-test-step-of-atf/ta-p/2308654