title: Selenium Firefox Pop-up blocker leads to fail the test case execution
body: <p>We are using the selenium with firefox webdriver to automate all our test cases.<br><br> I'm automating the SDL Tridion manual activities like Creating a Component, Creating a Page, Tridion out-of box search etc....<br><br>When I run the test cases for Page Creation test case, <strong>Firefox's pop up blocker ending up blocking the window that is supposed to open. This leads to failing the test case,</strong> but for other test cases it is working fine(FYI : I'm running it from my local)<br><br>
  On the top of this selenium project we have built one asp.net web application and the application has been configured in the IIS Successfully. When I run this project by hitting the server URL, All the test cases got executed successfully.(Note: No Firefox pop-up blocker issue)<br>But we couln't execute the selenium project from our local, because of the firefox driver pop-up blocker issue.<br><br>I have tried a couple of things but they didn't work out, And those are mentioned here<br><strong>1. Given the URL of the site in the firefox setting's(Options->Content->Add Exceptions->URL of the Site)</strong><br><strong>2. Setting the preference in the firefox profile like below<br></strong></p>
  
  <pre><code>[TestFixtureSetUp]
          public void Init()
          {
              try
              {
                  //driver = new FirefoxDriver();
                  //FirefoxBinary fb = new FirefoxBinary(@ConfigurationManager.AppSettings["FirefoxBinaryLocation"]);
                  FirefoxBinary fb = new FirefoxBinary(@ConfigurationManager.AppSettings["FirefoxBinaryLocation"]);
                  FirefoxProfile fp = new FirefoxProfile();
                  fp.SetPreference("browser.startup.homepage_override.mstone", "ignore");
  
                  driver = new FirefoxDriver(fb, fp);
              }
              catch (System.Exception ex)
              {
                  logger.WriteError("Exception in instantiating Firefox driver : " + ex.Message);                
              }
          }
  </code></pre>
  
  <p>Firefox Version :- 38.5.2
  Webdriver Version :- 2.48.0.0<br><br>
  Any help would be greatly appreciated..Thanks...
  <a href="https://i.stack.imgur.com/xY57w.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xY57w.jpg" alt="enter image description here"></a></p>