I am new to selenium , currently I am working in it. I want to select a value from the drop down. The ul class="ns-dropdown" and the option is many in that am trying to select and load Australian Dollar page.
Here is the Html tag:
<ul class="ns-dropdown">
<li class="ns-option><a class="c36 noUnderline">USD</a></li>
<li class="ns-option><a class="c36 noUnderline">AUD</a></li>
<li class="ns-option><a class="c36 noUnderline">NZD</a></li>
</ul>
Here is the code I tried
WebElement dropDownListBox = driver.findElement(By.className("ul.ns-dropdown"));
Select clickThis = new Select(dropDownListBox);
clickThis.selectByValue("Australian Dollar");
But this not worked.
Please suggest me some ways to set the drop down value.
Thank You!