<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to perform a right-click in a Browser Clickpath Synthetic Monitor in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/ta-p/233062</link>
    <description>&lt;H2&gt;Summary&lt;/H2&gt;
&lt;P&gt;Sometimes a simple click is not sufficient, and a right-click is needed. This can be achieved through a &lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events#javascript" target="_self"&gt;JavaScript Event.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;How to perform a right-click in a Browser Clickpath Synthetic Monitor&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Go to the relevant page in a Chrome browser.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Right-click on the element you want to interact with on the page and select 'Inspect'. The element will then be shown in Developer Tools.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inspect.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16545iC2DDB5737FAD885C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inspect.png" alt="Inspect.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorMareeswaran_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Right-click on the element in the Web Developer Tools -&amp;gt; Copy -&amp;gt; Copy JS path.&lt;/P&gt;
&lt;DIV id="tinyMceEditorMareeswaran_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DevTools.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16546i9D7461033307901B/image-size/large?v=v2&amp;amp;px=999" role="button" title="DevTools.png" alt="DevTools.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Paste the JS path in the value below the element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;function rightClick(element){
  var evt = element.ownerDocument.createEvent('MouseEvents');
  var RIGHT_CLICK_BUTTON_CODE = 2; // the same for FF and IE
  evt.initMouseEvent('click', true, true,
      element.ownerDocument.defaultView, 1, 0, 0, 0, 0, false,
      false, false, false, RIGHT_CLICK_BUTTON_CODE, null);
  return !element.dispatchEvent(evt);
}
var element = document.querySelector('button[id="testid"]'); //Replace with the element which you want to right-click.
rightClick(element);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/browser-monitors/configure-browser-monitors#recorded-clickpath" target="_self"&gt;Add a new event&lt;/A&gt; to the monitor, where you need to right-click and paste in the updated snippet above.&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HannahM_3-1703869880685.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16547i128E5D9B983A6DC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HannahM_3-1703869880685.png" alt="HannahM_3-1703869880685.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2 id="toc-hId-1971787789"&gt;What's Next&lt;/H2&gt;
&lt;P&gt;If the previous steps don't resolve the issue, open a chat and provide a link to the monitor, along with the troubleshooting steps you have already completed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can find further troubleshooting tips for Synthetic in the&amp;nbsp;&lt;A class="" href="https://community.dynatrace.com/t5/Troubleshooting/Synthetic-Troubleshooting-Map/ta-p/250426" target="_blank" rel="noopener"&gt;Synthetic Troubleshooting Map&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 12:07:55 GMT</pubDate>
    <dc:creator>HannahM</dc:creator>
    <dc:date>2025-11-04T12:07:55Z</dc:date>
    <item>
      <title>How to perform a right-click in a Browser Clickpath Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/ta-p/233062</link>
      <description>&lt;H2&gt;Summary&lt;/H2&gt;
&lt;P&gt;Sometimes a simple click is not sufficient, and a right-click is needed. This can be achieved through a &lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events#javascript" target="_self"&gt;JavaScript Event.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;How to perform a right-click in a Browser Clickpath Synthetic Monitor&lt;/H2&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Go to the relevant page in a Chrome browser.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Right-click on the element you want to interact with on the page and select 'Inspect'. The element will then be shown in Developer Tools.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inspect.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16545iC2DDB5737FAD885C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inspect.png" alt="Inspect.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorMareeswaran_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Right-click on the element in the Web Developer Tools -&amp;gt; Copy -&amp;gt; Copy JS path.&lt;/P&gt;
&lt;DIV id="tinyMceEditorMareeswaran_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DevTools.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16546i9D7461033307901B/image-size/large?v=v2&amp;amp;px=999" role="button" title="DevTools.png" alt="DevTools.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Paste the JS path in the value below the element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;function rightClick(element){
  var evt = element.ownerDocument.createEvent('MouseEvents');
  var RIGHT_CLICK_BUTTON_CODE = 2; // the same for FF and IE
  evt.initMouseEvent('click', true, true,
      element.ownerDocument.defaultView, 1, 0, 0, 0, 0, false,
      false, false, false, RIGHT_CLICK_BUTTON_CODE, null);
  return !element.dispatchEvent(evt);
}
var element = document.querySelector('button[id="testid"]'); //Replace with the element which you want to right-click.
rightClick(element);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/browser-monitors/configure-browser-monitors#recorded-clickpath" target="_self"&gt;Add a new event&lt;/A&gt; to the monitor, where you need to right-click and paste in the updated snippet above.&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HannahM_3-1703869880685.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16547i128E5D9B983A6DC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HannahM_3-1703869880685.png" alt="HannahM_3-1703869880685.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H2 id="toc-hId-1971787789"&gt;What's Next&lt;/H2&gt;
&lt;P&gt;If the previous steps don't resolve the issue, open a chat and provide a link to the monitor, along with the troubleshooting steps you have already completed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can find further troubleshooting tips for Synthetic in the&amp;nbsp;&lt;A class="" href="https://community.dynatrace.com/t5/Troubleshooting/Synthetic-Troubleshooting-Map/ta-p/250426" target="_blank" rel="noopener"&gt;Synthetic Troubleshooting Map&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 12:07:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/ta-p/233062</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2025-11-04T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform a right-click in a Browser Clickpath Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/tac-p/233248#M512</link>
      <description>&lt;P&gt;Thanks for sharing!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 12:44:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/tac-p/233248#M512</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2024-01-03T12:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to perform a right-click in a Browser Clickpath Synthetic Monitor</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/tac-p/249593#M690</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have tried to implement that but I am getting the below error once i have playback the record.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Playback error: Exception was thrown by the JavaScript code: Cannot read properties of null (reading 'ownerDocument')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any recomendation to overcome this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:18:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/How-to-perform-a-right-click-in-a-Browser-Clickpath-Synthetic/tac-p/249593#M690</guid>
      <dc:creator>mwater07</dc:creator>
      <dc:date>2024-07-01T20:18:55Z</dc:date>
    </item>
  </channel>
</rss>

