# Continue to check/execute rest of the synthetic events in browser click path

**URL:** <https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring\
**Created:** [April 13, 2020, 6:36am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024 "2020-04-13T06:36:45Z")\
**Posts on this page:** 9\
**Page:** 1

<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 13, 2020, 6:36am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/1 "2020-04-13T06:36:45Z")

</div>

Hi,

Is it possible in browser click path monitor to continue execution of rest of the synthetic events even if any middle event/step fails?

Thanks…

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 13, 2020, 12:10pm UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/2 "2020-04-13T12:10:50Z")

</div>

i believe so but it depends on how your click path is set up. Lets say it fails on step 5, If step 5 is contingent on accessing step 6, then it will not be able to proceed.

---

<div class="post-metadata">

**Author:** ![manish\_reddy](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@manish\_reddy](https://community.dynatrace.com/u/manish_reddy)\
**Post date:** [April 13, 2020, 4:49pm UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/3 "2020-04-13T16:49:02Z")

</div>

Hi ,

I believe it is not possible example there is synthetic monitor and monitor failed due to one page doesn’t load properly after clicking on a button in the previous page,after this step logout should be done and the logout option is there in previous page only where the button was clicked previously but this logout step is not done and monitor failed in the previous step where the page not loaded properly and the monitor didnt continue to the next step which is independent to the previous event.

---

<div class="post-metadata">

**Author:** ![justin\_hogue](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/justin_hogue/32/19679_2.png) [@justin\_hogue](https://community.dynatrace.com/u/justin_hogue)\
**Post date:** [April 13, 2020, 7:18pm UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/4 "2020-04-13T19:18:32Z")

</div>

Hello,

I haven’t tried this myself but you may be able to achieve this by using JavaScript events. Through the use of the JavaScript API you should have the ability to skip execution of events to create a dynamic workflow. I’ll provide a link with documentation on this below.

[https://www.dynatrace.com/support/help/shortlink/id\_brower-clickpath-events#javascript-](https://www.dynatrace.com/support/help/shortlink/id_brower-clickpath-events?_ga=2.206368465.3344599.1586798382-1909602575.1571679112#javascript-)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [April 14, 2020, 9:37am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/5 "2020-04-14T09:37:30Z")

</div>

What would be the use case for this?

is it that you don’t care about the results from some actions? If so, why are you testing them? As mentioned previously though you could add javaScript events to make the flow dynamic so that if you see a failure the script takes a different route.

If it’s that you need to make sure a user gets logged out at the end of a session but also want to know that the action you tried failed, you might be better adding a check, at the beginning of the script, when you log in for the page that tells you if you already have a session open and then have conditional actions to deal with that.

---

<div class="post-metadata">

**Author:** ![manishlokurthi](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@manishlokurthi](https://community.dynatrace.com/u/manishlokurthi)\
**Post date:** [April 19, 2020, 2:58pm UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/6 "2020-04-19T14:58:55Z")

</div>

Thanks Hannah,

In my case ,If a event is failed in the script ,after failure of that event I need to go to execute the next event and this event is independent of previous event So please may I know how could I execute it like how to use the java script for this to execute to the next event

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [April 20, 2020, 8:54am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/7 "2020-04-20T08:54:24Z")

</div>

Edit:

There is now an option to [ignore specific status codes](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/browser-monitors/configure-browser-monitors#ignore-status-codes) in the Advanced Settings

If you’re failing due to validation or would usually use a locator in the next action to move on, you can use JavaScript events. You can find the documentation on JavaScript Events [here](https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/browser-monitors/browser-clickpath-events/#javascript-).

If the event is failing due to validation, you’ll need to move the validation check out into the JavaScript action. Like here, if you don’t see the text ‘Information for parents’, then skip the next event.

```auto
var content = document.documentElement.outerHTML;<br>var searchText = "Information for parents";<br><br>api.info(content.indexOf(searchText));<br>if (content.indexOf(searchText) > -1) {<br>    api.skipNextSyntheticEvent();<br>}

```

The same is for locators, you can check if locators exist before trying to click on them and then either perform the click in the JavaScript event or use the skip events calls to skip unnecessary events

```auto
var target1 = document.getElementById("cancelButton");<br>if (target1 !== null) {<br>    target1.click();<br>    api.info("--> found survey popup and clicked cancel");<br>} else {<br>    api.info("--> no popup");<br>}

```

---

<div class="post-metadata">

**Author:** ![manishlokurthi](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@manishlokurthi](https://community.dynatrace.com/u/manishlokurthi)\
**Post date:** [April 22, 2020, 6:19am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/8 "2020-04-22T06:19:00Z")

</div>

Thanks Hannah,

In the synthetic browser click path if one of the event is failed due to content text validation ,then to execute to the next event with out failing the whole script as you said we can use java script but is there any possibility to mark that specifics event has failed with the error message (event which was failed due to validation ) and then execute to the next event , with out affecting the availability.If it so ,please let me know how to proceed.Thank you.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [April 22, 2020, 8:38am UTC](https://community.dynatrace.com/t/continue-to-check-execute-rest-of-the-synthetic-events-in-browser-click-path/19024/9 "2020-04-22T08:38:19Z")

</div>

Hi Manish, unfortunately, it’s not possible to fail an event and continue with the rest of the execution.  
If they you would like to know the availability to each of the unrelated pages it might be better to have 2 separate monitors.
