Hi

Dim oleft,otop,oright,obottom
Dim itemexist

oleft = -1
otop = -1
oright = -1
obottom = -1

itemexist = .WinObject("WinObject").WinList("Accounts").GetTextLocation("Blank 
Form", oleft, otop, oright, obottom)
 .WinObject("WinObject").WinList("Accounts").Click oleft, otop


"itemexist" always returns true and has values in  oleft, otop, oright, 
obottom, but it clicks the wrong item in the WinList.


I've tried 
Click oleft, otop
Click oleft, oright
Click oleft, obottom

Click  otop, oleft
and so on.

There's only one link with "Blank Form".  
Thanks

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to