title: Selenium chrome driver No Such Session
body: <p>OS: OSX 10.12.2</p>
  
  <p>Selenium Version: 2.52.0 Scrapy</p>
  
  <p>Browser: Chrome</p>
  
  <p>Browser Version: 55.0.2883.95 (64-bit)</p>
  
  <p>Hi,</p>
  
  <p>I'm trying to use selenium on my project. But I'm getting No such session error. when I use it with latest chrome driver. Also You can find error below.</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/user/Library/Python/2.7/lib/python/site-packages/twisted/internet/defer.py", line 651, in _runCallbacks
      current.result = callback(current.result, *args, **kw)
    File "/Users/user/Downloads/Test-2/ecommerce_bot/ecommerce_bot/spiders/hepsiburada.py", line 67, in parseProductComments
      self.browser.get(response.url)
    File "/Users/user/Library/Python/2.7/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 248, in get
      self.execute(Command.GET, {'url': url})
    File "/Users/user/Library/Python/2.7/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
      self.error_handler.check_response(response)
    File "/Users/user/Library/Python/2.7/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
      raise exception_class(message, screen, stacktrace)
  WebDriverException: Message: no such session
    (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Mac OS X 10.12.2 x86_64)
  </code></pre>
  
  <p>Also This my code.</p>
  
  <pre><code>self.browser.get("url")
  xpath = self.browser.find_element_by_xpath("/html/head/script[17]")
  </code></pre>
  
  <p>And Browser</p>
  
  <pre><code> def __init__(self):
          super(HepsiburadaSpider, self).__init__()
          chromedriver = "/Users/user/Downloads/chromedriver"
          os.environ["webdriver.chrome.driver"] = chromedriver
          self.browser = webdriver.Chrome(chromedriver)
  </code></pre>