Forum Discussion
It looks like I can detect down to the individual cells (Image 2) in the Listbox (Image 1). I guess what I'm asking is, from the attached screenshots, can you tell me if I have access to all the properties that I need in order to work with the control? And if so, can you tell me how to use Test Complete to manuever, detect and work within the control?
I'm sorry, I'm quite the newb when it comes to working with these Listboxes.
Thanks,
Kevin Kleint
Hi Kevinkleint,
As a rule, it's possible to work with a listbox control in a way listed in the Working With List Box Controls ( http://smartbear.com/viewarticle/75560/ ) article. However, in your case, as you use the Text Recognition feature, you can see all listbox items in the object tree under Windows(“ListBox”). Thus, you can access the target item by using its full path.
- kevinkleint11 years agoContributor
Unfortunately, if the list item is not visible (ie: 35 rows down), then it won't be detected by Testcomplete ... that is, of course, unless there is some sort of "Find" functionality that I can use. Is there a way to do this?
Thanks,
Kevin
- m_essaid11 years agoValued Contributor
hi,
even if you d'ont have full debug info, even if the listbox item is not visible, it's ok I think :
-> map your listbox
-> set the exe in "TestedApps"
Then use the "ClickItem()" method (here tested in a Delphi example : )
TestedApps.ExampleExe.Run();
Aliases.ExampleExe.FormExample.ListBox1.ClickItem(6);(the last visible item is the 4th. here the sixth is selected by this way)
- m_essaid11 years agoValued Contributor
hem 7th item for the index 6, sorry