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

Unable to find javascript element during playback

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 27 Dec 2012, 10:36 PM
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.  

1 Answer, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 29 Dec 2012, 12:05 AM
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.

Greetings,
Mario
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sean
Top achievements
Rank 2
Answers by
Mario
Telerik team
Share this question
or