title: How to select a value from a drop-down using Selenium from a website with special setting- Python
body: <p><strong>Note:</strong> I particularly deal with this <a href="https://rads.stackoverflow.com/amzn/click/com/B01GVT5KR6" rel="nofollow noreferrer" rel="nofollow noreferrer">website</a></p>
  
  <p>How can I use selenium with Python to get the reviews on <a href="https://www.amazon.com/Harry-Potter-Slytherin-Wall-Banner/product-reviews/B01GVT5KR6/ref=cm_cr_dp_d_show_all_top?ie=UTF8&amp;reviewerType=all_reviews" rel="nofollow noreferrer">this page</a> to sort by 'Most recent'?</p>
  
  <p>What I tried was:</p>
  
  <pre><code>driver.find_element_by_id('sort-order-dropdown').send_keys('Most recent') 
  </code></pre>
  
  <p>from <a href="https://stackoverflow.com/questions/36471904/how-to-select-a-drop-down-menu-option-value-using-selenium-python">this</a> didn't cause any error but didn't work.</p>
  
  <p>Then I tried </p>
  
  <pre><code>from selenium.webdriver.support.ui import Select
  
  select = Select(driver.find_element_by_id('sort-order-dropdown'))
  select.select_by_value('recent')
  select.select_by_visible_text('Most recent')
  select.select_by_index(1)
  </code></pre>
  
  <p>I've got: <code>Message: Element &lt;select id="sort-order-dropdown" class="a-native-dropdown" name=""&gt; is not clickable at point (66.18333435058594,843.7999877929688) because another element &lt;span class="a-dropdown-prompt"&gt; obscures it</code></p>
  
  <p>This one </p>
  
  <pre><code>element = driver.find_element_by_id('sort-order-dropdown')
  element.click()
  li = driver.find_elements_by_css_selector('#sort-order-dropdown &gt; option:nth-child(2)')
  li.click()
  </code></pre>
  
  <p>from <a href="https://stackoverflow.com/questions/24498976/python-selenium-select-from-drop-down-menu">this</a> caused the same error msg</p>
  
  <p>This one from <a href="https://stackoverflow.com/questions/22524621/selecting-a-value-from-a-drop-down-option-using-selenium-python">this</a> caused the same error also</p>
  
  <pre><code>Select(driver.find_element_by_id('sort-order-dropdown')).select_by_value('recent').click()
  </code></pre>
  
  <p>So, I'm curious to know if there is any way that I can select the reviews to sort from the most recent first.</p>
  
  <p>Thank you</p>