Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WinList Behavior
#1
Not Solved
We are automating a Small Talk application and trying to launch a window by clicking an item from a WinList. Unfortunately, it is not activating the item we are expected to to launch. Is there another way to know the index of the item we need to double click or activate?

Item List Count: 13
Index of item to select (zero-based index): 11
Actual index selected: 5

Code snippet:

ItemListCount = Window("window").WinList("list").GetItemsCount

For i = 0 To ItemListCount - 1
    Text = Window("window").WinList("list").GetItem(i)
    If Strcomp(Text, "Templates") = 0 Then
        Window("window").WinList("list").Activate i
        Exit For
    End if
Next
Reply


Messages In This Thread
WinList Behavior - by marse91782 - 11-24-2016, 06:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Playback causes different behavior than manual RandomGrin 1 1,958 12-24-2012, 01:58 PM
Last Post: elango87
  Grid identified as WinList anushachanda 4 4,714 09-12-2012, 12:04 PM
Last Post: anushachanda
  QTP doesn't identify the Objects which are in WinList Sushanth 0 3,992 08-13-2012, 04:20 PM
Last Post: Sushanth
  How to capture data from winlist. neeraj.engg 1 8,255 08-03-2012, 12:22 PM
Last Post: sree.85
  unable to identify Checkbox Property inside the WinList Object tech.savy987@gmail.com 2 4,341 07-20-2012, 10:18 AM
Last Post: Shridevi.Salagare

Forum Jump:


Users browsing this thread: 2 Guest(s)