Forum Discussion

dsolis2's avatar
dsolis2
Occasional Contributor
14 years ago

Unable to click on a ListItem

I have a list object 'List(0)' mapped as 'List1'. The list object can contains ip to 20 ListItems. When I try to click on the ListItem, TC will click on the item below or above the item, but never in the specified item. To make sure I search and find the correct listItem name, I use a search string like this in the listItem name where 'contactID' is variable that contains the string I am searching for:



objPage.List1.ListItem("*_auto"&contact_ID&"_*").setFocus


Using .setFocus to test that at least it can select the correct ListItem, TC can highlight it, but when I use .Click,  TC clicks either below or above. Any ideas what is going on?