Hi Kumar,

You can use one more method.

If you want to  wait for one object  to be displayed like OK button etc.,
You can use following logic.

If Browser().Page().WebButton().exist(2) <> True then
              wait 20               'here you can give more wait time as per
your application demands.
end if

'Exist(2) -- here you can mention how much time you want to wait like 2 or 3
etc.,   or some times 10

Try with this logic.


'You can also implement do while or do until loop, but that is not
advisable. Happy Scripting...

With Regards
Srinivas P

On Mon, Oct 6, 2008 at 3:07 PM, lakshmi jyoshna <[EMAIL PROTECTED]>wrote:

> use synchronization point i think it is the right solution
>
>
> On Mon, Oct 6, 2008 at 3:02 PM, praveen garigipati <
> [EMAIL PROTECTED]> wrote:
>
>>  Ashish,
>>
>> Thanks for reply, I could not able give time becuase few of test cases may
>> take less time and few take more time. means it should be dynamically
>> updated one.
>>
>> Regards,
>> Praveen
>>
>>
>>  On Mon, Oct 6, 2008 at 2:53 PM, Ashish Desai <[EMAIL PROTECTED]>wrote:
>>
>>> You can user *Wait* method for any number of seconds.  Its not true that
>>> *Wait* statement cant handle more then 20 seconds.
>>>
>>> You can specify any number of seconds.
>>>
>>> for e.g. :
>>>
>>> Wait 900
>>>
>>> It will wait for 900 seconds i.e. 15 mins and then it will execute next
>>> statement.
>>>
>>>
>>> Thanks,
>>> Ashish
>>>
>>>
>>> On Mon, Oct 6, 2008 at 2:39 PM, kumar <[EMAIL PROTECTED]>wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I have problem with wait property method. In my script i am using
>>>> 'Wait property' method. But this statement could not handle morethan
>>>> 20 seconds. My requirment is - 'I am clicking on 'OK' button and then
>>>> application getting hang up and it will take time to recover. I am
>>>> expecting that "QTP" should wait untill application comes to normal
>>>> state.  Please suggets me is there any other methods are available in
>>>> QTP.
>>>>
>>>> Thanks in advance,
>>>> Praveen
>>>>
>>>>
>>>>
>>>>
>>> >>>
>>>


--

--~--~---------~--~----~------------~-------~--~----~
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