title: How to select value from dropdown which is not in <div> using selenium python
body: <p>I have below html code, all I want to click on the dropdown and select the first value.How can I achieve this.I am having issues when selecting the values from dropdown but was able to click the dropdown</p>
  <pre><code>&lt;div id= &quot;location-select-list&quot; class=&quot;mb-list&quot; role=&quot;role0&quot;&gt;
      &lt;mb-option id='1' class='classname' role='rolename' data-auto-id=&quot;dt1&quot; aria-disabled=&quot;False&quot; 1 &lt;/mb-option&gt;
      &lt;mb-option id='2' class='classname' role='rolename' data-auto-id=&quot;dt2&quot;aria-disabled=&quot;False&quot; 2 &lt;/mb-option&gt;
  </code></pre>
  <p>I have tried this but not working.</p>
  <pre><code>#click on the dropdown--working
  
  WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH,
                                          xpath_0))).click()
  #selecting 1st value from the dropdown value list--not working
  
  xpath = &quot;//div[@id='location-select-list']//mb-option[@data-auto-id='dt1']&quot;
  WebDriverWait(driver, 5).until(EC.visibility_of_element_located((By.XPATH,
                                          xpath))).click()
  </code></pre>