title: Selenium Python not able to select value from drop down for Amazon product detail screen
body: <p>I'm trying to automate an add to cart operation for amazon products, one issue I ran into is I was not able to simulate click dropdown menu using selenium in python. Here is my current code (ignore imports) :</p>
  
  <pre><code>            select = Select(self.driver.find_element_by_id("native_dropdown_selected_size_name"))
              print("select = ", select)
              for o in select.options:
                  if o.text == '12':
                      print("found")
              select.select_by_visible_text("12")
  </code></pre>
  
  <p>In my code, I'm trying to select the size 12 option from menu dropdown. From the print statement I can tell the dropdown is found and size 12 is also there but the select_by_visible_text doesn't seem to work. </p>
  
  <p>Another option I have tried is: </p>
  
  <pre><code>            self.driver.find_element_by_xpath("//select[@id='native_dropdown_selected_size_name']/option[text()='12']").click()
  </code></pre>
  
  <p>which also doesn't seem to work.</p>
  
  <p>Here is the product I'm experimenting on: <a href="https://rads.stackoverflow.com/amzn/click/com/B07KRY1JPK" rel="nofollow noreferrer" rel="nofollow noreferrer">https://www.amazon.com/dp/B07KRY1JPK</a>. The color option is there by default so the issue is with the size selection.</p>
  
  <p>Any help is appreciated. Thanks in advance!</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I'm able to solve the issue by clicking on the span tag (sibling after the select) and the a tag that is hidden under span to make a selection. The original select tag does not work for some reason. My guess is it is for native only.</p>