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 above this the same name status.So i need to select 2nd element of 2 dropdown/combobox.
Please provide me the solution.Its urgent.Thanks in Advance
Another td
<TD align="left" WIDTH="18%"><FONT ID="oldContent">
<select name="status" onchange="selectTime(this.options[this.selectedIndex].value)" id="newcontentformat">
<option value="" selected="selected"></option>
<option value="1">text100</option>
<option value="2">text200<</option>
<option value="3">text300<</option>
</TD>