Clicking Labels changes Checkbox state

3 posts, 0 answers
  1. Dan
    Dan avatar
    18 posts
    Member since:
    Mar 2016

    Posted 25 Oct Link to this post

    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. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    257 posts

    Posted 26 Oct Link to this post

    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!
  3. Dan
    Dan avatar
    18 posts
    Member since:
    Mar 2016

    Posted 26 Oct in reply to Nikolay Petrov Link to this post

    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

Back to Top