title: How can I select an element from this drop down menu in Python/Selenium?
body: <p>I've looked through a few solutions to select drop down elements, but none of them are working for me.</p>
  
  <p>This is the html for the dropdown.</p>
  
  <pre><code>&lt;div class="goog-inline-block goog-flat-menu-button" role="button" style="-moz-user-select: none;" tabindex="3" aria-haspopup="true"&gt;
      &lt;div class="goog-inline-block goog-flat-menu-button-caption"&gt;Resolved&lt;/div&gt;
      &lt;div class="goog-inline-block goog-flat-menu-button-dropdown"&gt;&amp;nbsp;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried finding the dropdown by xpath and link text with no success.</p>
  
  <p>EDIT:  Here's the code I'm using</p>
  
  <pre><code>import contextlib
  import selenium.webdriver as webdriver
  import selenium.webdriver.support.ui as ui
  from selenium.webdriver.common.keys import Keys
  import re
  with contextlib.closing(webdriver.Firefox()) as driver:
      driver.get("https://websitename.com/#ticket/123456")
      wait = ui.WebDriverWait(driver, 30)
      wait.until(lambda driver: driver.find_element_by_xpath("//div[@class='goog-inline-block goog-flat-menu-button"))
      driver.find_element_by_xpath("//div[@class='goog-inline-block goog-flat-menu-button").click()
      driver.find_element_by_xpath("//div[@class='goog-inline-block goog-flat-menu-button").send_keys("R")
      wait6 = ui.WebDriverWait(driver, 30)
  </code></pre>
  
  <p>The code is supposed to change the selected drop down list element from assigned to resolved.</p>