When you use Exist it does not wait for the entire time you have specified. It will exit out once it finds the required parameter. For example in the script below,
If Browser("bro_mb_webadmin").Page("pge_mb_webadmin").WebElement("btn_Edit").Exist(8) Then Browser("bro_mb_webadmin").Page("pge_mb_webadmin").WebElement("btn_Edit").Click End If QTP will not wait for entire 8 seconds. Once it finds the object say in 2 seconds, it will move to the next step. I have been using Exist and I find it a very effective for Dynamic delay. On Sat, Apr 18, 2009 at 1:07 AM, Kaarthik Reddy <kaarthik.re...@gmail.com>wrote: > Hi all > Its a windows based application. > > I need a statement other than the wait statement. > > since i cant guess how much time it takes to move to next step > > >> > > > > -- > Regards > Karthik Reddy > > --------------------------------------------------------------------------------------- > BE BLESSED & BE A BLESSING TO OTHERS !!!!!!! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 MercuryQTP@googlegroups.com To unsubscribe from this group, send email to mercuryqtp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---