title: How do you select a document from a Google Drive popup selection window in python's selenium package?
body: <p>I working on a beta proof of concept automation project where, at this stage, I am trying to go into a Google drive pop-up window and select a particular document and submit it. This is what the popup window looks like.</p>
  <p><a href="https://i.stack.imgur.com/INTN6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/INTN6.png" alt="enter image description here" /></a></p>
  <p>Here is the HTML for the first section, highlighted:
  <a href="https://i.stack.imgur.com/ezy1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ezy1Y.png" alt="enter image description here" /></a></p>
  <p>Here is the HTML for the second section, highlighted:
  <a href="https://i.stack.imgur.com/ycJ01.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ycJ01.png" alt="enter image description here" /></a></p>
  <p>I have tried a few different driver.find_element_by_xpath and ActionChains(driver).send_keys(Keys....) methods but keep getting errors. Note, I am in the right driver window. I did figure that out. Any insight would be greatly appreciated.</p>
  <p>Update: For example, when I try and run this code:</p>
  <pre><code>driver.find_element_by_class_name(&quot;Od-lh-Jf-O-Ah-Bh&quot;).click()
  </code></pre>
  <p>I get this error output:</p>
  <pre><code>NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;.Od-lh-Jf-O-Ah-Bh&quot;}
  </code></pre>