Forum Discussion
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)
hem 7th item for the index 6, sorry
- kevinkleint10 years agoContributor
When I try to run a similar test, I get the following error:
**********
The list box is not of the LBS_HASSTRINGS style. More information can be found in the MSDN library.
The wItem, wItemList and wSelectedItems methods will return an empty string.
.
Tested object:
Aliases.ceraexe0.wndAfx.MDIClient.childframe.winapp.panel.AfxWnd100.ListBox
(Sys.Process("ceraexe0").Window("Afx:00EB0000:8:00010005:00000000:00020063", "Facets - Service Rule Definition - VO", 1).Window("MDIClient", "", 1).Window("Afx:00EB0000:b:00010005:00000006:00010431", "Service Rule Definition - VO", 1).Window("Afx:00EB0000:b:00010005:00000006:00000000", "Service Rule Definition - VO", 1).Window("AfxWnd100", "", 1).Window("AfxWnd100", "", 2).Window("ListBox", "", 1))**********
What does this mean?
Kevin
- TanyaYatskovska10 years ago
Alumni