This is a migrated thread and some comments may be shown as answers.

Clicking Labels changes Checkbox state

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 25 Oct 2017, 11:41 PM

After some 508 Compliance work we recently performed on our site, I found that a majority of my previously working scripts had started to fail when attempting to click certain elements.

Most tests include clicking Checkboxes by clicking either the control OR the label (clicking both would essentially leave the control state unchanged)
Most test include clicking Radio Buttons by clicking the control AND the label (clicking both does not change state, which at the end is: selected)

What we see now is that clicking the label of a radio button changes the state of the first checkbox preceding the radio button.

I've attached a graphic showing what's happening.

If this occurred within the same control type (i.e., checkboxes or radio buttons), my first thought would be that the elements in my script were out of order.
The fact that clicking the label of a radio button changes the state of a checkbox indicates that something else is at play here.

When I brought this to my DEV’s attention, she said that this is occurring only in areas where the 508 Compliance work was completed, but when I brought this to our DEV’s attention, should didn’t see anything in the DOM that would account for this behavior.

I’m currently using version 2016.3.928.0, and have not updated my client in many months.

I looked through the Form and couldn't find anything reported similar to this.

Thanks for any help you might be able to provide,

Dan

 

2 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 26 Oct 2017, 11:54 AM
Hello Dan,

Thank you for providing so detailed information on the case.

I would suggest initially if using latest browsers version to update Test Studio to the latest available version (at this point it is 2017.3.1010) to ensure proper recording/execution behavior of the product.

The click action depends on the find logic of the element which is generated during recording process. Since the application was changed then it's most probably necessary the find logic to be edited correspondingly to the new structure. You could check on the failing steps or the ones that are not executed as expected and try to change it accordingly. Try to record again one of the failing steps and to compare the new generated find logic and compare it to the older one to verify if that is the root of the problem.

I hope that his would fix this problem.

Best Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Dan
Top achievements
Rank 1
answered on 26 Oct 2017, 05:59 PM

Hi Nikolay,

 

Thanks for your response.  I'm currently in the middle of upgrading my TS installation.

I will follow your advice and compare the find logic with a working label to one that's not, and make the necessary changes.

Thanks,

Dan

Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Dan
Top achievements
Rank 1
Share this question
or