<?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>topic Re: browser monitor - js help in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189388#M1385</link>
    <description>&lt;P&gt;OK, thanks. I think this would be best looked at directly either through chat or a support ticket so we can check your whole script and logs,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 15:50:53 GMT</pubDate>
    <dc:creator>HannahM</dc:creator>
    <dc:date>2022-06-28T15:50:53Z</dc:date>
    <item>
      <title>browser monitor - js help</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189375#M1382</link>
      <description>&lt;P&gt;Hi All, trying to get some help on using a js event in my browser monitor. I am attempting to capture a variable on the screen and use it later but the step ends up failing with "js execution took too long".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several different wait times. With the "wait 5 seconds" option it sits for much longer than 5 seconds before erroring out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I logged into the page &amp;gt; dev tools &amp;gt; right click on the element and chose 'copy js path", then used it in the query selector. I am not 100% about the target window but we never open a new tab/window so left as default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with this is much appreciated as I am not very html savvy.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jordan_rose_0-1656422091485.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6305i29031F2B9BA7F3A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jordan_rose_0-1656422091485.png" alt="jordan_rose_0-1656422091485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jordan_rose_1-1656422112448.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6306iD1D05C76905BEDBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jordan_rose_1-1656422112448.png" alt="jordan_rose_1-1656422112448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 13:15:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189375#M1382</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2022-06-28T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: browser monitor - js help</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189381#M1383</link>
      <description>&lt;P&gt;Can you try adding the window? If it's the initial one it will be window[0]. Then, can you also print the value of otp, after setting it,&amp;nbsp; to the vuc-http-custom.log using&lt;/P&gt;
&lt;P&gt;api.info("otp: " + otp);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully, that will give us a clue as to what's going on .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 13:47:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189381#M1383</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2022-06-28T13:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: browser monitor - js help</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189386#M1384</link>
      <description>&lt;P&gt;Hi Hannah, thanks for reply. I notice you cant actually specify&amp;nbsp;&lt;SPAN&gt;window[0] as it just auto resets it back to "optional". I guess it assumes that by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added the logging line but it doesnt seem to be writing anything there. The log is empty on both of the synthetic AGs for this env.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:39:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189386#M1384</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2022-06-28T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: browser monitor - js help</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189388#M1385</link>
      <description>&lt;P&gt;OK, thanks. I think this would be best looked at directly either through chat or a support ticket so we can check your whole script and logs,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:50:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189388#M1385</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2022-06-28T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: browser monitor - js help</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189400#M1386</link>
      <description>&lt;P&gt;Hi Hannah, adding inner.HTML to the end fixed the issue and I can see the log now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var otp = document.querySelector("#content &amp;gt; div &amp;gt; form &amp;gt; fieldset &amp;gt; div:nth-child(3) &amp;gt; div &amp;gt; p:nth-child(3) &amp;gt; b").innerHTML;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response/help!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:52:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/browser-monitor-js-help/m-p/189400#M1386</guid>
      <dc:creator>jordan_rose</dc:creator>
      <dc:date>2022-06-28T17:52:17Z</dc:date>
    </item>
  </channel>
</rss>

