Forum Discussion
Hi hc_vinod,
Thanks for replying to the questions. Did I get it right that the code is executing successfully right after you start TestComplete?
Yes, After Restarting Test complete , it works
- TanyaYatskovska10 years ago
Alumni
Thanks for your clarification.
Let’s check what control items TestComplete sees during the test execution. Add the following code to your test:
Sub Test5
Set obj = Aliases.d950system.wndD950Class.MDIClient.wndAfx.page32770.page32770.pageSnapshots.SysListView322 Log.Message("Number of items is " & obj.wItemCount)
For i=0 To obj.wItemCount-1 it = obj.wItem(i,0) Log.Message(it) Next
Call obj.DblClickItem("defaultSettings", 0)
End SubWhat do you see in the test log?
- hc_vinod10 years agoOccasional Contributor
Thanks for the code
But i cannot find "Default Settings" in witem array
- TanyaYatskovska10 years ago
Alumni
Do you see this item on the screen when executing the test?
- hc_vinod10 years agoOccasional Contributor
Yes I can see the element "Default Settings" when code is executed
to brief you more
See attached Screenshot
There are two tabs in my screen (snapshots and Presets) , both are not gettings identified by test complete
selecting "Snapshots" tab in the page and execting the above codewill give all the items under snapshots namely "Abcd, ...Snapshot #1..."
But even after exceuting the same code after selecting "Presets" tab , still i will get items listed under "snapshots" tab instead of getting elements under preset tab