title: Webpage not opening in Firefox - Selenium Python
body: <p>I am trying to run a webpage remotely using Selenium and then trigger a button click on it. I am able to successfully open Firefox, but the webpage is not loading, and Firefox closes automatically after sometime. (Tried google.com and other pages just as test, that too not loading). Can anyone suggest what to do here ?</p>
  
  <p>OS - Ubuntu 14.04.1</p>
  
  <p>Python - 2.7.6</p>
  
  <p>Selenium - 3.3.0</p>
  
  <p>Firefox - 39.0.3</p>
  
  <h2>Here is my python code</h2>
  
  <pre><code>import urllib, urllib2, cookielib
  from contextlib import closing
  from selenium import webdriver
  from selenium.webdriver import Firefox # pip install selenium
  from selenium.webdriver.support.ui import WebDriverWait
  
  with closing(Firefox(executable_path="/usr/bin/firefox")) as driver:
      driver.implicitly_wait(10)
      driver.get("https://www.google.com")
      #driver.get("http://wsb.com/Assingment2/expcase16.php")
      button = driver.find_element_by_id('send')
      button.click()
      target_window = driver.window_handles[1]
      driver.switch_to_window(target_window)
      exploit_page_content = driver.page_source
      print "Exploit successful \n" + exploit_page_content
  </code></pre>