title: How can I set socks5 proxy for selenium webdriver? Python
body: <p>I really can’t to set socks5 proxy(http too...) for my chrome webdriver in selenium for python. 
  I tried many different ways... But I think I do something bad. </p>
  
  <p>Example 1:</p>
  
  <pre><code>self.options.add_argument('--proxy-server=http://'+proxy)
  </code></pre>
  
  <p>Example 2: </p>
  
  <pre><code>webdriver.DesiredCapabilities.CHROME['proxy'] = {
          "socksProxy": proxy,
          "ftpProxy": proxy,
          "sslProxy": proxy,
          "noProxy": None,
          "proxyType": "MANUAL",
          "class": "org.openqa.selenium.Proxy",
          "autodetect": False
      }
  </code></pre>
  
  <p>Please describe fully the working example of setting up socks5 proxy on Selenium for Python and Chrome webdriver, with an example of proxy string formats (maybe i am doing something mistakes here ...). </p>
  
  <p>PS Two problems which I get:</p>
  
  <ol>
  <li>Just staying old IP address. </li>
  <li>No internet connection in chrome web driver.</li>
  </ol>