Dona6
Giga Contributor

ATF - How to use “Click Model button” test step

 

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

 find_real_file.png

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

 find_real_file.png 

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

find_real_file.png

 

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

 find_real_file.png

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

find_real_file.png

Comments
Gerald Onyia
Kilo Guru

Thanks for this Dona! This was exactly what I needed in my current ATF Test 🙂

Dona6
Giga Contributor

I'm glad I was able to help. Thanks for the reply Gerald.

Arvind9
Kilo Contributor

This is really very helpful and exact solution I was looking for. Thanks Dona for good explaination with  screenshot 🙂

KeDix
Tera Expert

Thanks for sharing this way to identify the button ID.

The selection pop-up window does not show the required button.

MahdiA
Tera Contributor

Hi Dona,

 

Thanks for your precious help ! 

 

I want to add something : if the Modal has a text area, that may be mandatory, use "Set Component Value (Custom UI)" to fill it. 

 

 

saha23456
Tera Contributor

can anyone help me what should be the button and how to fech it

saha23456_0-1740464478734.png

 

MahdiA
Tera Contributor

 

Hi Saha,

Just copy the ID of the HTML button element to fetch the button's name as shown in the first post.

Version history
Last update:
‎10-21-2019 06:34 PM
Updated by: