title: selenium.common.exceptions.WebDriverException: Message: invalid session id using Selenium with ChromeDriver and Chrome through Python
body: <p>I'm writing some code using Selenium, and at one point I make 7 requests, all to different websites. For the first one, this works fine. However, for others, I get a session ID error. I think that my browser is configured correctly, as I do get results from the first website. I have tried to put a WebDriverWait in between the requests, but to no avail. I think the websites might be blocking my requests. Does anyone have any idea how to solve this problem? </p>
  
  <p>I'm sorry if this is something stupid or if I'm doing anything wrong, I'm quite new ^^ </p>
  
  <p>Thanks in advance! </p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/cena/PycharmProjects/Frikandelbroodje/main.py", line 56, in &lt;module&gt;
      dirk_price = get_price(dirk_url, dirk_classname)
    File "/home/cena/PycharmProjects/Frikandelbroodje/main.py", line 44, in get_price
      browser.get(url)
    File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
      self.execute(Command.GET, {'url': url})
    File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
      self.error_handler.check_response(response)
    File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: invalid session id
    (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.15.0-50-generic x86_64)
  </code></pre>