Unable to find javascript element during playback

2 posts, 0 answers
  1. Sean
    Sean avatar
    9 posts
    Member since:
    Aug 2012

    Posted 27 Dec 2012 Link to this post

    I am attempting to automate a client registration on our website and when I run my test after recording playback is unable to find the link on the overlay.  The link itself when inspected displays as follows. 

        <h2>Please login or<a href="JavaScript:onRegister();"><b>register</b></a> to continue.</h2>

    When this link is selected the expected behavior is that a new overlay displays allowing a new user to register with the site.  However I am unable to get this link to click during a test run.  
  2. Mario
    Mario avatar
    8 posts

    Posted 28 Dec 2012 Link to this post

    Hello Sean,

    Thank you for your interest in Test Studio.

    An element which cannot be found on playback is most often an indication that the default Find Logic created when the action was recorded is unsuitable. I suggest that you Change How this Element is Found in a manner such that the find settings are targeting the correct link and only use properties which do not change between runs.

    In order for me to provide you with an exact solution to this problem, I would require a copy of your test along with the ZIP file created when clicking the Export Results to File option in the step failure details. I do realize that since this is a public forum, it would mean sharing the information with everyone. If this is an issue, let me know and I can set up an FTP or some other means for you to upload these additional files privately.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top