title: Process finished with exit code 1 error in python
body: <p>I'am trying to automate whatsapp messages in pre-set time. I use pycharm ide. </p>
  
  <p>See the sample code,</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  import time
  
  # Replace below path with the absolute path
  # to chromedriver in your computer
  driver = webdriver.Chrome('/home/saket/Downloads/chromedriver')
  
  driver.get("https://web.whatsapp.com/")
  wait = WebDriverWait(driver, 600)
  
  # Replace 'Friend's Name' with the name of your friend 
  # or the name of a group 
  target = '"Friend\'s Name"'
  
  # Replace the below string with your own message
  string = "Message sent using Python!!!"
  
  x_arg = '//span[contains(@title,' + target + ')]'
  group_title = wait.until(EC.presence_of_element_located((
      By.XPATH, x_arg)))
  group_title.click()
  inp_xpath = '//div[@class="input"][@dir="auto"][@data-tab="1"]'
  input_box = wait.until(EC.presence_of_element_located((
      By.XPATH, inp_xpath)))
  for i in range(100):
      input_box.send_keys(string + Keys.ENTER)
      time.sleep(1)
  </code></pre>
  
  <p>I took this code from <a href="http://www.geeksforgeeks.org/whatsapp-using-python/" rel="nofollow noreferrer">here</a></p>
  
  <p>I replaced the chromedriver path in my computer to C:\Users\public\chromedriver.exe but after hit the run button It shows the path is error.</p>
  
  <p>Here's the screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/DYhDm.png" rel="nofollow noreferrer">chrome driver location error on PC</a></p>
  
  <p>Can you tell me why that happens though the location is correct? </p>