title: Python Selenium: "selenium.common.exceptions.WebDriverException: Message: chrome not reachable" local file
body: <p>I'm trying to use Selenium to parse a local HTML file called <code>output.html</code>.</p>
  <p>In the Python interpreter, I can do my imports, create a <code>webdriver.Chrome</code> driver object and <code>GET</code> my local file just fine.</p>
  <p>I get the error when I try to find anything using the driver's functions.</p>
  <h3>Code:</h3>
  <pre><code>&gt;&gt;&gt; from selenium import webdriver
  &gt;&gt;&gt; from selenium.webdriver.chrome.options import Options
  &gt;&gt;&gt; 
  &gt;&gt;&gt; chrome_options = Options()
  &gt;&gt;&gt; chrome_options.binary_location = '/usr/bin/google-chrome'
  &gt;&gt;&gt; chrome_options.add_argument('--headless')
  &gt;&gt;&gt; chrome_options.add_argument('--no-sandbox')
  &gt;&gt;&gt; chrome_options.add_argument('--disable-dev-shm-usage')
  &gt;&gt;&gt; 
  &gt;&gt;&gt; driver = webdriver.Chrome(chrome_options=chrome_options)
  &gt;&gt;&gt; 
  &gt;&gt;&gt; driver.get('file:output.html')
  &gt;&gt;&gt; 
  &gt;&gt;&gt; # no error up to here
  &gt;&gt;&gt; 
  &gt;&gt;&gt; driver.name  # runs ok
  &gt;&gt;&gt; driver.orientation  # runs ok
  &gt;&gt;&gt;
  &gt;&gt;&gt; driver.page_source  # error!
  &gt;&gt;&gt; driver.find_element_by_name('p_system')  # error!
  </code></pre>
  <p>I am baffled as to the reason for the error. Every page I find on Google suggests that the chromedriver and/or Google Chrome binary is in the wrong place/not findable by Selenium, yet this can't be the case as I can use <code>GET</code> with the driver with success (with the local HTML file) and can run the same code on websites like <code>https://www.python.org</code>.</p>
  <h3>Error Traceback:</h3>
  <pre><code>selenium.common.exceptions.WebDriverException: Message: chrome not reachable
    (Session info: headless chrome=74.0.3729.169)
    (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 4.4.0-17763-Microsoft x86_64
  </code></pre>
  <hr />
  <h3>Duplicates:</h3>
  <p>While it's easy to mark questions as duplicates and move on, it's much better to review the questions to at least check if there are differences between them.</p>
  <p>The key difference between other Stack Overflow questions is this one works for external websites, but doesn't with local files. The other ones don't work, at all, and changing versions fixes the issue.</p>
  <p>As shown in the error traceback, the <code>chromedriver</code> version and the headless <code>chrome</code> version are both 74 and should be compatible according to this <a href="http://chromedriver.chromium.org/downloads" rel="nofollow noreferrer">site</a>.</p>
  <p>The Selenium webdriver will work as intended up until you call a certain function, then it will throw the error.</p>