Yes Getroproperty("alt") will give youtooltip.
Regards,
Suman
On 06-Dec-2012, at 2:50, Kamran <[email protected]> wrote:
>
> Hi Dimitry,
> try to get alt property. I always use alt property to get tooltip,
> getroproperty("alt").
>
>
> On Wed, Dec 5, 2012 at 3:08 PM, Ganesh muralidharan <[email protected]>
> wrote:
> Hi,
>
> It has been sometime since Dmitry has responded to queries. Other experts in
> this group please respond.
>
> --
> Regards,
> Moderator
>
>
> On Wed, Dec 5, 2012 at 2:59 PM, elgauchocordobe <[email protected]> wrote:
> Dmitry, tried both ways, it did not work.
>
> txt = Window("nativeclass :=tooltips_ class32").GetROProperty( "text")
>
> returns an error saying Windows is an invalid object. the object that brings
> up the tooltip is SwfWindow("CSI - Capacity
> Planning").SwfTable("processGrid") so my code goes something like this
>
> If procViewer.getcelldata(0,6)="0" Then
> SwfWindow("CSI - Capacity Planning").SwfTable("processGrid").mouseMove 5,5
> ' Capture the text of the tooltip object
> txt = Window("nativeclass :=tooltips_ class32").GetROProperty( "text")
> 'Reporter.ReportEvent micpass, "Step 1: check Define Statbase task error:
> the AUT showed an error: " & txt, "End"
> msgbox txt
> msgbox SwfWindow("CSI - Capacity
> Planning").SwfTable("processGrid").GetROProperty("error provider text")
> Else
> Reporter.ReportEvent micFail, "Step 1: check Define Statbase task error:
> The AUT did not show any errors", "End"
> End If
>
> Object spy only returned a new reference to SwfWindow("CSI - Capacity
> Planning").SwfTable("processGrid") but with a new number.
>
> Any ideas?
> --
> 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
> "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
>
>
>
> --
> Regards,
> Muhammad Kamran
> --
> 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
"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