use run time absolute coordinates...........will help you. like x=
windows(ABD).getroproperty(abs_x)
y= window(ABD).getroproperty(abs_y)
textfound= window(ABD).GetTextLocation("text found",x,y) or use some other
wayaround..
M not sure will it work or not..
On Friday, July 1, 2016 at 10:31:51 PM UTC+2, [email protected] wrote:
>
> Why does this work on one machine and not other machine, we've different
> resolutions.
> What's the best way to find out which coordinates to use, sometimes oleft,
> otop work and other times different options work.
>
>
>
> Dim oleft,otop,oright,obottom
> Dim TextFound
>
>
> oleft = -1
> otop = -1
> oright = -1
> obottom = -1
>
>
> TextFound = Window("ABC").GetTextLocation("Hello World"
> ,oleft,otop,oright,obottom)
>
> 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.