Locating select element in Selenium
问题 Below is the combobox: <TD ALIGN="left" id="oldcontent"> <select name="status" style="width=150" id="newcontentformat"><option value="14" selected="selected">text1</option> <option value="15">text2</option> <option value="16">text3</option></select> </TD> I need to select text2 in the combobox/dropdown.I have used the below: selenium.select("//select[starts-with(@name,status)","text2"); The probelm am facing is,its giving me an error text2 not found.Since there are may other select boxes