<?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: Keyword from meta content in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Keyword-from-meta-content/m-p/190787#M1417</link>
    <description>&lt;P&gt;Something like this should work:&lt;/P&gt;
&lt;P&gt;var body = response.getResponseBody();&lt;/P&gt;
&lt;P&gt;if (body.match(/&amp;lt;meta(.*football.*)&amp;gt;/g)) {&lt;BR /&gt;api.finish();&lt;BR /&gt;} else {&lt;BR /&gt;api.fail("Football not mentioned");&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2022 11:41:32 GMT</pubDate>
    <dc:creator>HannahM</dc:creator>
    <dc:date>2022-07-18T11:41:32Z</dc:date>
    <item>
      <title>Keyword from meta content</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Keyword-from-meta-content/m-p/190771#M1416</link>
      <description>&lt;P&gt;Hi - I wanted to check the url &lt;A href="http://www.football.com.au" target="_blank" rel="noopener"&gt;www.football.com.au&lt;/A&gt;&amp;nbsp;and ensure the keyword of "football" from the meta content is there. I have been told to configure the post-execution script but Im not exactly sure on what code to put in there. Any examples would be great&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:51:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Keyword-from-meta-content/m-p/190771#M1416</guid>
      <dc:creator>tabpws</dc:creator>
      <dc:date>2022-07-18T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Keyword from meta content</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Keyword-from-meta-content/m-p/190787#M1417</link>
      <description>&lt;P&gt;Something like this should work:&lt;/P&gt;
&lt;P&gt;var body = response.getResponseBody();&lt;/P&gt;
&lt;P&gt;if (body.match(/&amp;lt;meta(.*football.*)&amp;gt;/g)) {&lt;BR /&gt;api.finish();&lt;BR /&gt;} else {&lt;BR /&gt;api.fail("Football not mentioned");&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 11:41:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Keyword-from-meta-content/m-p/190787#M1417</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2022-07-18T11:41:32Z</dc:date>
    </item>
  </channel>
</rss>

