Forum Discussion
Yes;
Values in listbox are getting shown in the object
When I am trying to select the item, it works for the first 3 indexes in list
but then gives in incorrect result
Code================================
childIndex = 7
#half of the width
xPos = ListBox.Child(childIndex).BoundingRectangle[2]//2
# (Screen Top of child - Screen Top of List Box) + Half of the height of child
yPos = (ListBox.Child(childIndex).BoundingRectangle[1] - ListBox.BoundingRectangle[1]) + (ListBox.Child(childIndex).BoundingRectangle[3])//2
ListBox.Click(xPos, yPos)
#***works Partially end****
If you have the index of the item, then I don't think you need the x,y positions. You can access the object by name, something like
MyObject(2).Click
- lalit_singh3 years agoContributor
Hello Marsha;
I am having older version of test complete , there click() function on index is not available
- Marsha_R3 years agoChampion Level 3
If you record a test that clicks on one of the entries in the listbox, what code does it give you for that click?
- lalit_singh3 years agoContributor
it gives the click() function with coordinates but that is not working