cancel
Showing results for 
Search instead for 
Did you mean: 

Select a particular radio button value in data-driven loop test script

SOLVED
Highlighted
Occasional Contributor

Select a particular radio button value in data-driven loop test script

I had created a data-driven test with my project variable, but i am facing a problem when the radio button click should be performed.

In my script which is recored is the name of the radio button click but it is only functional for the first data input.

I had tried with R* in NameMapping but it doesnt work.

Can somebody please help me solve this issue, how to differenciate this radio buttons names in order to be proper selected?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Select a particular radio button value in data-driven loop test script

The problem that i was facing was because of the same name of the class name for all radio buttons, so after selecting the class by the index and was able to differenciate them. 

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: Select a particular radio button value in data-driven loop test script

Let the test run the way it is now, and after the second data input fails, use the Object Spy to see what the name of the button is and then post a screenshot of that for us.

Highlighted
Community Leader

Re: Select a particular radio button value in data-driven loop test script

Hi,

 

I need more informaction to help you resolve the problem.

 

1) You have few checkboxes in you app with the same "ClassName"?

2) Can You map the second and maybe third checkbox with object spy?

3) Checkboxes, they are all visible for You on screen when You performing actions on them?

Highlighted
Occasional Contributor

Re: Select a particular radio button value in data-driven loop test script

The problem that i was facing was because of the same name of the class name for all radio buttons, so after selecting the class by the index and was able to differenciate them. 

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!
Top Kudoed Authors