Forum Discussion
"Test is failing" how? Did you get an error where you didn't expect one? Or because the next page didn't open? What is the failure criteria?
What happens if you try these steps manually?
It would also help if we could see your test code.
- tristaanogre7 years agoEsteemed Contributor
Just as a guess.... considering the one screenshot you showed that it was waiting for an object... what this seems to suggest is an object identification problem... it's not actually clicking on the link because it can't find it. Check your object identification (namemapping) for the link in question and see if it's correct.
- cunderw7 years agoCommunity Hero
To second this, it looks like you're trying to click an exact path to the link which being that data is dynamic will cause issues.
How are you getting the link you are attempting to click? In a scenario like this you would likely want to map the static parent and in then use a Find method to get the child link you are wanting to click on based on the data, search through the table.
Also, just a tip, you appear to be using the same Chrome instance for your tests that you use for personal. I highly recommend setting up a more sterile test environment, either a VM or VDI or something.
- meesh6107 years agoOccasional Contributor
Thank you for your help, it is much appreciated!
How are you getting the link you are attempting to click?
This link is created by data that is generated by a vehicles battery. It's a page within a report page...if I'm describing that correctly. I will take your advice and see if I can create my tests on a VM or VDI if I have that option. If I do not have access to a VM or VDI, what do you recommend?
Thanks again!
- meesh6107 years agoOccasional Contributor
I did get an error when I didn't expect one. When I do the test manually, I do not get any errors. The error comes during playback of the script when the link is clicked then ends. there is no error while recording the script. Hope that helps!
Thank you!
- tristaanogre7 years agoEsteemed Contributor
Recording does exactly that: record. And it records EXACTLY what you tell it to. And any mappings created during that recording will use whatever value is available... which means that if some identifying factor of your link you're attempting to click on changes between recording and play-back, you'll get this error.
You need to investigate the mapping of the link in question, identify any dynamic property values, and either "wildcard" those parts that can be or investigate what other properties may give a more accurate identification.
- meesh6107 years agoOccasional Contributor
Thank you very much for your feedback. I will investigate this further.
Related Content
- 10 years agoDewayne_Pinion
- 8 months agognp
Recent Discussions
- 24 hours agodhundley