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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

android - Format a french phone number -