I need to select a radio button based on the input which is come from database
i.e the radio button’s aaname is the first and last name of a person( which is come from input mssql database).
In short I need to select the radio button dynamically.
Can you inspect on a checkbox using ui explorer and share the selector screenshot here.
Also, what is the value retrieving from the database? Usually, the query will output as data table, so it only has one row of data or multiple rows are there?
if you just want to know the dynamic selector, you can watch the below video.
THanks it is working correctly.
One more condition on this I need to click the radio button only the patient exist if not I need to click always first radio button.
@HeartCatcher Enclose the current activity in a Try Catch block. If Selector Not Found exception occurs then in catch block keep the activity which always clicks on first radio button
Can you elaborate this? How do you know the patient is exist or not? @HeartCatcher
You can use if condition
Then part
click the corresponding radio button
I mean that the patient name is based on the input coming from the DB after combining and passing the variable if the patient name in the browser and from db are matched means need to click on specific radio button if not neeeds to click first radio button always.