Hi..

you can also use exit(0) like the below statement which will reduce the wait
time.

if Browser("").Dialog("Windows Internet Explorer").WinButton("Yes").*
Exist(0)* then
       Browser("").Dialog("Windows Internet
Explorer").WinButton("Yes").Click
End if

Thanks,
Bharath

On Tue, Aug 19, 2008 at 5:24 PM, Dhanasekar Subramaniam <
[EMAIL PROTECTED]> wrote:

> Check for the window.exist condition
> Then if exist click yes button else part can be ignorned
>
> Regards,
> Dhanasekar S
> http://testingideas.wordpress.com/ <http://testingideas.w/>
>
>
>
> On 18/08/2008, Newbie <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all QTP experts,
>> I'm currently experiencing difficulties in scenario below.
>> Please advise.
>>
>> Scenario:
>> If a popup appear then would like to click yes button.
>>
>> Would like to script if this appear then then yes, otherwise, ignore
>> the scripts and proceed to next scripts.
>> Is there a way to do this?
>>
>> Thanks!
>> Newbie
>>
>>
>
>
> --
> Regards,
> Dhanasekar S.
> ---------------------------------------------------------
> Let us make the World Greener
> http://www.greenpeace.org/international/
> -----------------------------------------------------------
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "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