.net - selecting listview object in c# web browser -
i writing c# code open page , select item list view.
this code:
webbrowser.document.getelementbyid("x:446594328.7:mkr:list:nw:1").setattribute("selectedindex", "2";
but is not selecting items list.
list like
<ul id="x:446594328.7:mkr:list:nw:1" class="igdd_dropdownlist " nw="1" mkr="list"> <li class="igdd_listitem " id="x:446594328.8:adr:0" adr="0"> <a href="javascript:void(0)"></a> </li> <li class="igdd_listitem " id="x:446594328.9:adr:1" adr="1"> <a href="javascript:void(0)">xyz</a> </li> <li class="igdd_listitem " id="x:446594328.10:adr:2" adr="2"> <a href="javascript:void(0)">pqr</a> </li> </ul>
in browser shows list when click down arror btn when select 1 item form list selects item further process.
i want select item pragmatically.
Comments
Post a Comment