<?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 Disabling browser alerts in synthetics scripts in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Disabling-browser-alerts-in-synthetics-scripts/m-p/737384#M10385</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have configured a synthetic job to execute a python-selenium script to test a website. The browser shows an alert ("location information is unavailable") I have tried profiles in firefox and chrome both to load the instance&amp;nbsp;blocking these, but i continue to face this issue. I believe it is due to AppD creating it's own instance and ignores the code. Please help.&lt;/P&gt;

&lt;P&gt;Below is the code that I am using in Chrome&lt;/P&gt;

&lt;P&gt;opt = Options()&lt;BR /&gt;opt.add_argument("--disable-infobars")&lt;BR /&gt;opt.add_argument("start-maximized")&lt;BR /&gt;opt.add_argument("--disable-extensions")&lt;/P&gt;
&lt;P&gt;# Pass the argument 1 to allow and 2 to block&lt;BR /&gt;opt.add_experimental_option("prefs", { \&lt;BR /&gt; "profile.default_content_setting_values.media_stream_mic": 2, &lt;BR /&gt; "profile.default_content_setting_values.media_stream_camera": 2,&lt;BR /&gt; "profile.default_content_setting_values.geolocation": 2, &lt;BR /&gt; "profile.default_content_setting_values.notifications": 2 &lt;BR /&gt; })&lt;/P&gt;
&lt;P&gt;driver = webdriver.Chrome(chrome_options=opt)&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 17:28:08 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2018-04-30T17:28:08Z</dc:date>
    <item>
      <title>Disabling browser alerts in synthetics scripts</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Disabling-browser-alerts-in-synthetics-scripts/m-p/737384#M10385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have configured a synthetic job to execute a python-selenium script to test a website. The browser shows an alert ("location information is unavailable") I have tried profiles in firefox and chrome both to load the instance&amp;nbsp;blocking these, but i continue to face this issue. I believe it is due to AppD creating it's own instance and ignores the code. Please help.&lt;/P&gt;

&lt;P&gt;Below is the code that I am using in Chrome&lt;/P&gt;

&lt;P&gt;opt = Options()&lt;BR /&gt;opt.add_argument("--disable-infobars")&lt;BR /&gt;opt.add_argument("start-maximized")&lt;BR /&gt;opt.add_argument("--disable-extensions")&lt;/P&gt;
&lt;P&gt;# Pass the argument 1 to allow and 2 to block&lt;BR /&gt;opt.add_experimental_option("prefs", { \&lt;BR /&gt; "profile.default_content_setting_values.media_stream_mic": 2, &lt;BR /&gt; "profile.default_content_setting_values.media_stream_camera": 2,&lt;BR /&gt; "profile.default_content_setting_values.geolocation": 2, &lt;BR /&gt; "profile.default_content_setting_values.notifications": 2 &lt;BR /&gt; })&lt;/P&gt;
&lt;P&gt;driver = webdriver.Chrome(chrome_options=opt)&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 17:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Disabling-browser-alerts-in-synthetics-scripts/m-p/737384#M10385</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-04-30T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling browser alerts in synthetics scripts</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Disabling-browser-alerts-in-synthetics-scripts/m-p/737385#M10386</link>
      <description>&lt;P&gt;Hi Sumit,&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;I understand that this a popup and you can't interact with this element as its not a&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;WebElement&lt;/CODE&gt;&lt;SPAN&gt;, so you have to handle it before the browser launches a site.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;As Synthetic&amp;nbsp;launches it's own browser session, did you try handling these popups within script itself and also let us know if this is a blocking factor with synthetic usage in your environment?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Deepanshu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 06:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Disabling-browser-alerts-in-synthetics-scripts/m-p/737385#M10386</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-05-21T06:41:07Z</dc:date>
    </item>
  </channel>
</rss>

