The website I'm testing has been built with Visual Studio C#. The dropdown menus I'm to test don't use the usual format of:
<select> <option>...</option> ... ... </select>
Instead, they're built:
<input name="exampleName" type="text" class="rcbInput" id="exampleInput" value="exampleValue" readonly="readonly" autocomplete="off">
With each value appearing lower down in the code as a list item.
Each of these list items is within an structure like:
Form > rcbSlide > ... > rcbList > ul > li
Where li objects are the values in the dropdown menu.
What I want to know is, how can I select a dropdown value in this structure?
When I use the standard
Select select = new Select(driver.findElement(By.whatever()))
It gives me an error saying something along the lines of 'Select' expected, got 'input'.