30 Mar 2021 10:35 PM - last edited on 10 Mar 2023 04:01 PM by Ana_Kuzmenchuk
Hi All,
I recorded a script and wanted to verify it before finalizing it, so I chose the playback click path option. But now my script is failing during playback with the error 'Multiple selectors were not found' at a step where I am checking a check box on my website. Can anyone please help me in resolving this issue?
Thank you.
Solved! Go to Solution.
31 Mar 2021 09:28 AM
Hi Gauri,
Try adding wait options for the step before the failing step, like if step 5 is failing then try wait options for 4th step. For me "Wait for background network activity to get complete" and "Wait for next event" worked most of the time.
Regards,
AK
31 Mar 2021 04:18 PM
Hello AK,
Thanks for the suggestion, but the script is failing even after implementing these changes. Is there any other workaround?
Please let me know.
Regards,
Gauri.
31 Mar 2021 05:41 PM
Have you tried all five options? I will try to suggest further steps then.
01 Apr 2021 11:58 AM
Hello Gauri,
Does previous steps successfully completed during the replay? You can verify that by looking at screenshots once the replay is completed. Check if all previous steps have relevant screenshots. This will tell where actually the script replay is failing.
It might happened that, previous steps are not completed and replay will move like fast forward. For e.g.- Page is not loaded completely but script replay trying to find a button or click which not actually available yet.
Refer the below screenshot for reference.
Once we sure that it is not able to click on checkbox then we can add JavaScript call to perform the click on checkbox.
Regards,
AK
01 Apr 2021 02:57 PM
Hi AK,
On the previous step I could see a popup in the screenshot which otherwise had not been there while recording the script. Since the synthetic did not click on the popup for it to go away, I think because of this the error is occurring.
What can be done in this case?
Regards,
Gauri.
01 Apr 2021 03:29 PM - edited 01 Apr 2021 03:33 PM
Strange. It should appear while recording too.
Can you add screenshot of both the steps and make sure to remove or hide sensitive information on the screenshots.
01 Apr 2021 04:33 PM
I am afraid I can send any details like screenshots but just for more information please find below comments.
1. The script has more than 25 steps.
2. While recording or browsing the website manually, we do not see the pop up
3. But while replay the pop up is appearing at step 8 itself before putting in the username and password
4. This pop up stays on till step 20, where we see the error 'Multiple selectors were not found.'
5. And the playback fails.
I hope this helps.
Thank you.
01 Apr 2021 04:49 PM
What is the error message on pop-up?
01 Apr 2021 06:46 PM
There is no error message on pop up. It is a part of the website providing additional information.
01 Apr 2021 08:04 PM - edited 02 Apr 2021 02:03 PM
Hi Gauri,
I would suggest to open a support case and have live troubleshooting session. It's difficult to reach to root cause of the problem over this communication thread.
For immediate and primary level troubleshooting, you can use Live-Chat feature available on upper right corner of the Dynatrace UI before raising a Support Ticket,
Regards,
AK
01 Apr 2021 08:22 PM
Ok. Thank you so much. Appreciate all the help!