c# - How to select a particular list item if there is a duplicate also present -


i have htmllist items 1,2,3,4,1,2,3,4 wish select 3 last 1 element.

i unable select particular list item.

i tried following code block

htmllistitem listitem = new htmllistitem(this.uimap.rightlist); listitem.filterproperties[htmllistitem.propertynames.taginstance]= "19"; listitem.filterproperties[htmllistitem.propertynames.innertext] = "3"; 

where rightlist htmllist , taginstance of item 19. not able identify item , selecting htmllistitem @ random. can suggest alternate way achieve this.

appreciate help.

try using the:

findmatchingcontrols() 

something this:

var controls = listitem.findmatchingcontrols() 

and figure out index of desired list item , select it

mouse.click(controls[index]) 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -