Hi Mathi, the "Exist" method take the timeout value in milisecond. So, if you need to put a timeout for the exist as 2 second, you need to put it as Exist(2000). In your script, it might be taking longer time due to two possible reasons:
1. Timeout of 2 milisecond is getting too less for qtp to identify the object and it just take the default value of sync time as set in the test property (default is 20 sec) 2. Along with point specified in point 1, there could be "Smart Identification" enabled for the object in test. Please try putting the timeout as 2000 (Exit(2000)) and let me know if it works. Regards, Vivek On Thu, Sep 18, 2008 at 4:08 PM, Enock Prince <[EMAIL PROTECTED]>wrote: > Wait(2) > > Thanks, > > Enock Prince.G > > > On 9/18/08, Mathi_QA Engineer <[EMAIL PROTECTED]> wrote: >> >> >> I want to check the particular object >> exists or not and it should wait for 2 seconds and should display the >> result.. >> So i just added, >> xxxxxx. Exist(2) >> but,I feel it waits more than 2 seconds think waits 2 minutes. >> Then what numeric we have to addd i it should wait for only 2 seconds? >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
