title: Chrome is closed with error ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
body: <p>My laptop OS is windows 10. I am using selenium webdriver with Python. When I open the chrome browser through the script, chrome is closed after loading the web page. Below is my code of python and error.</p>
  
  <pre><code>from selenium import webdriver
  
  firfox_path = 'D:\Xampp7\htdocs\python_automation\Gecko_Driver\f_geckodriver-v0.26.0-win64\geckodriver.exe'
  
  chrome_path = 'D:\Xampp7\htdocs\python_automation\Gecko_Driver\chromedriver_win32\chromedriver.exe'
  browser = "chrome"
  
  def open_chrome():
      driver = webdriver.Chrome(executable_path=chrome_path)
      driver.maximize_window()
      driver.get('http://seleniumhq.org/')
  
  def open_firefox():
      driver = webdriver.Firefox(executable_path=firfox_path)
      driver.get('http://seleniumhq.org/')
  
  if browser == "chrome":
      open_chrome()
  elif browser == "firefox":
      open_firefox()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>[6512:8744:0119/111722.550:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with:0
  DevTools listening on ws://127.0.0.1:63800/devtools/browser/bd82b677-7c97-47c6-9be1-5fae4ea25a9c
  [13392:16912:0119/111722.621:ERROR:network_change_notifier_win.cc(141)] WSALookupServiceBegin failed with: 0
  </code></pre>