How do I click on buttons of an application based on the string in variable?

Hello everyone,

I’m trying to dynamically click on buttons of an application based on the string in variable. Can anyone help me in achieving this task for me.

I’m attaching the screenshot of the application.


Any helps or leads is much appreciated.

Hi @Karthik23

Open UI Explorer and Indicate one of the buttons…Check the Properties and find a property/Attribute like name or innertext generally which contains the name of the button…use a variable in place of that name value and pass the requried button name.

Make sure you remove any id or specific attributes only to that button…

to check once you have the selector change the name value and validate again and see if the corresponding button is getting highlighted

cheers

Hello @Karthik23

Here you need to use the click button by making the selector as dynamic. So you have to pass the required button name as a variable to the selector.

You can watch the below video to get a clarity.

Thanks