Hi,
The techniques to keep your script synchronized, described in Help:
Browser.Sync
object.Exist([TimeOut])
Object.WaitProperty
Sub WaitProperty_Example1()
'The following example uses the WaitProperty method to wait for the
'All kind of link's readyState to be complete or for
'4 seconds (4000 milliseconds) to pass, whichever comes first.
'If the link achieves this value before 4000 milliseconds pass,
'QuickTest clicks the link.
If Browser("index").Page("index").Link("All kind of").WaitProperty(
"attribute/readyState", "complete", 4000) Then
Browser("index").Page("index").Link("All kind of").Click
End If
End Sub
List of available properties for the object you can find with the GUI Spy,
and reading MSDN documentation
for example http://msdn.microsoft.com/en-us/library/ms534359(VS.85).aspx
It's far beyond the scope of QTP related problems. QTP provide to an option
to interact with your application, but what exactly your application does,
it is not a QTP problem.
Roman
On Wed, Jun 17, 2009 at 7:51 PM, Richard Hall <[email protected]>wrote:
>
> >>when is HP going to release a book on -writing- QTP scripts?
>
> >There are three books, at least I know, QTP Tutorials, QTP Help and QTP
> User
> Guide.
> >You don't expect from MS book "How to program with C++", just because they
> have Visual Studio, why you expect that from HP?
>
> I was not referring to VBScript. HP does a very poor job of documenting
> "Expert Mode".
> Picking up enough VBScript to get hte job don was easy, there are a ton of
> resources.
> The ""Big Three""; QTP Tutorials, QTP Help and QTP User Guide; have value.
> The Tutorial covers Record-and-Playback which is nearly useless in my
> environment.
> I was looking for:
> a list of known limitations,
> techniques to keep your script synched up with a web application when .SYnc
> and Object.Busy do not do the job,
> documentation clarifying their obscure error messages.
>
> Just things I need day-to day so I can write code.
>
>
> --
> Rick Hall
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---