title: How to select a dropdown value in Selenium WebDriver Java
body: <p>Before posting, I researched across stackoverflow to solve this issue but could not find solution as most of them provide solution related to Select class. Some of the links that I did come across and did not solve my issue are below,</p>
  <ol>
  <li><a href="https://stackoverflow.com/questions/20138761/how-to-select-a-dropdown-value-in-selenium-webdriver-using-java">How to select a dropdown value in Selenium WebDriver using Java</a></li>
  <li><a href="https://stackoverflow.com/questions/24114395/how-to-select-dropdown-value-in-selenium-webdriver-using-testng">How to select dropdown value in selenium webdriver using Testng?</a></li>
  <li><a href="https://stackoverflow.com/questions/55586742/how-to-select-dropdown-option-from-span-in-selenium-webdriver">How to select dropdown option from span in selenium webdriver</a></li>
  <li><a href="https://stackoverflow.com/questions/38130974/selenium-webdriver-handling-dropdowns">Selenium WebDriver: Handling DropDowns</a></li>
  <li><a href="https://stackoverflow.com/questions/28935813/select-dropdown-in-selenium-webdriver">Select dropdown in selenium webdriver</a></li>
  </ol>
  <p>I have 6 dropdown menus which has same dropdown list and same HTML tags.I am unable to select value from each dropdown menu. One of the dropdown menu looks like below,</p>
  <p><a href="https://i.stack.imgur.com/0pJqX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0pJqX.png" alt="1 of 6 dropdown menu" /></a></p>
  <p>I have HTML with dynamic div ids,</p>
  <p><a href="https://i.stack.imgur.com/eeeta.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eeeta.png" alt="HTML" /></a></p>
  <p>My xpath to select one of the options is as -&gt;  //li[text()='No Problems']. Below method does click on Dropdown menu but fails to click on No Problems. I could not use Select class as DOM does not have select tag.</p>
  <p>Below are the 2 different methods that I tried to select dropdown option,</p>
  <p><a href="https://i.stack.imgur.com/ieH3b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ieH3b.png" alt="Method to Click on dropdown and select No Problems" /></a></p>
  <p><a href="https://i.stack.imgur.com/hBM3M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hBM3M.png" alt="Method 2 to select option from dropdown" /></a></p>
  <p>Please help how to overcome this scenario and select dropdown list option.</p>