Hi ,

In some cases it may go to infinite loop it it failed to display object.

Instead we can define a custom wait function something like

set sObj = Browser("Interaction Center - [Home]").Page("Interaction
                > Center -
[Home]").Frame("WorkAreaFrame1").WebElement("Confirm")

Call CustomWait(sObj)

Function customwait(obj)
nTimeout = 300 ' based on your input

Do While nTimeout > 0
   If Not obj.exist(1) Then
      nTimeOut = nTimeOut -5
      wait(5)
  Else
    exitdo
  End If
Loop
End Function


On 3/16/12, uma mahesh <[email protected]> wrote:
> You can use
>
> Do until Browser("Interaction Center - [Home]").Page("Interaction
> Center - [Home]").Frame("WorkAreaFrame1").WebElement("Confirm").Exist
> Loop
>
> In this way tool will wait till the next object appears.
>
> --
> 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

Reply via email to