# 'Multiple selectors were not found' synthetic script error

**URL:** <https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring\
**Created:** [March 30, 2021, 9:35pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972 "2021-03-30T21:35:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [March 30, 2021, 9:35pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/1 "2021-03-30T21:35:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 31, 2021, 8:28am UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/2 "2021-03-31T08:28:04Z")

</div>

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”** &nbsp;worked most of the time.

 ![AK_0-1617178950208.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/38575d1ad297c6c524d6834188c9fe215947d66d.png)

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [March 31, 2021, 3:18pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/3 "2021-03-31T15:18:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 31, 2021, 4:41pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/4 "2021-03-31T16:41:52Z")

</div>

Have you tried all five options? I will try to suggest further steps then.

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [March 31, 2021, 6:33pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/5 "2021-03-31T18:33:22Z")

</div>

Yes, tried all 5.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [April 1, 2021, 10:58am UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/6 "2021-04-01T10:58:20Z")

</div>

Hello Gauri,

Does previous steps successfully completed during the replay? You can verify that by looking at&nbsp;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.

 ![AK_0-1617274660868.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/57d0c381b1e7a3338c3106197e14c11775cfdabf.png)

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

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [April 1, 2021, 1:57pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/7 "2021-04-01T13:57:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [April 1, 2021, 2:29pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/8 "2021-04-01T14:29:54Z")

</div>

Strange. It should appear while recording too.

Can you add screenshot of both the steps and make sure to remove or hide&nbsp;sensitive information on the screenshots.

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [April 1, 2021, 3:33pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/9 "2021-04-01T15:33:54Z")

</div>

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&nbsp;‘Multiple selectors were not found.’

5. And the playback fails.

I hope this helps.

Thank you.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [April 1, 2021, 3:49pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/10 "2021-04-01T15:49:42Z")

</div>

What is the error message on pop-up?

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [April 1, 2021, 5:46pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/11 "2021-04-01T17:46:20Z")

</div>

There is no error message on pop up. It is a part of the website providing additional information.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [April 1, 2021, 7:04pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/12 "2021-04-01T19:04:25Z")

</div>

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,

 ![AK_0-1617303505556.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/0/506c8189c718e22ada79991f1cb0d67b7e23c96d.png)

Regards,

AK

---

<div class="post-metadata">

**Author:** ![Gauri](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@Gauri](https://community.dynatrace.com/u/Gauri)\
**Post date:** [April 1, 2021, 7:22pm UTC](https://community.dynatrace.com/t/multiple-selectors-were-not-found-synthetic-script-error/30972/13 "2021-04-01T19:22:58Z")

</div>

Ok. Thank you so much. Appreciate all the help!
