title: Selenium cannot find form element in google calendar (Python)
body: <p>I am attempting to import calendar events to google calendar through a csv file using Selenium and Python. I am unable to select the form element to input my file path into google. I have tried finding the element by xpath, cssselector and class name and I get the same error every time:</p>
  
  <blockquote>
    <p>selenium.common.exceptions.NoSuchElementException: Message: no such
    element: Unable to locate element</p>
  </blockquote>
  
  <pre><code>fileElem = browser.find_element_by_xpath('//*[@id="YPCqFe"]/div/div/div/div[1]/div[1]/div/form')
  </code></pre>
  
  <p>The example xpath shown above was copied directly through google chrome. Any ideas why I can't get this to work? Thanks! Here's the picture of the element and the HTML code.</p>
  
  <p><img src="https://i.stack.imgur.com/iTAUq.png" alt="screenshot"></p>