title: Python3, can't set socks proxy with chromedriver (socks.py type integer error)
body: <p>I'm trying to use a socks5 proxy via localhost with chromedriver and python3.5. However, I get the following error:</p>
  
  <pre><code>loading
  Traceback (most recent call last):
    File "test.py", line 16, in &lt;module&gt;
      browser = webdriver.Chrome(chrome_options=options)
    File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
      self.service.start()
    File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 97, in start
      if self.is_connectable():
    File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 113, in is_connectable
      return utils.is_connectable(self.port)
    File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/utils.py", line 106, in is_connectable
      socket_ = socket.create_connection((host, port), 1)
    File "/usr/lib/python3.5/socket.py", line 702, in create_connection
      sock.connect(sa)
    File "/usr/local/lib/python3.5/dist-packages/socks.py", line 766, in connect
      _BaseSocket.connect(self, proxy_addr)
  TypeError: an integer is required (got type str)
  </code></pre>
  
  <p>Here's the code I'm using.</p>
  
  <pre><code>import time
  from datetime import datetime
  from selenium import webdriver
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  
  options = webdriver.ChromeOptions()
  options.add_argument("--proxy-server=socks5://127.0.0.1:9000")
  
  print("loading")
  browser = webdriver.Chrome(chrome_options=options)
  print("getting url")
  browser.get("http://www.atagar.com/echo.php")
  </code></pre>
  
  <p>Is this a bug in webdriver.py and how it parses the options and sends them to bind to the proxy?  Or is there something I am doing wrong here?</p>