title: Python+Selenium+PhantomJS. Waiting for proxy
body: <p>The code is given proxy to using it through the PhantomJS  to load the page. But it happens that proxies are either too slow or does not work.
  Tell me please how to make sure that the page is trying to open, but for example on the expiration of 20-30 seconds was issued a message that "The proxy does not work.</p>
  
  <pre><code>from selenium import webdriver
  browser=webdriver.PhantomJS()
  service_args = [
      '--proxy=10.10.20.20:3128',
      '--proxy-type=http',
      ]
  browser = webdriver.PhantomJS(service_args=service_args)
  browser.get('http://check-host.net/ip')
  browser.quit()
  </code></pre>
  
  <p>Maybe "Try....Catch..."
  Help me plese.
  Thank you advance!</p>