Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative for wait statement.
#1
Solved: 10 Years, 10 Months ago
[/align]QTP 9.5 Build 194 - Testing web application (DNN)

The action is Search for a user -> Once the record is retrieved, click on the delete button next the retrieved record and it generated the following code, without the "wait" statement in between.

[color]Browser("QA SOL Portal > Home").Page("User Accounts").Image("dnn$ctr2508$Users$btnSearch").Click 11,6
wait(20)
Browser("QA SOL Portal > Home").Page("User Accounts_4").Image("dnn$ctr2508$Users$grdUsers$ctl").Click 6,6[/color]

It did not work without the wait statement as it went to the next line right after the search action without waiting for the record to be retrieved. Since the record was not there, it could not find the delete button which caused the script to fail.

Is there any way, other than using wait command, to make the script to wait for the record to be retrieved before executing the next statement?

Thanks,
Binu.
Reply


Messages In This Thread
Alternative for wait statement. - by adpbinu - 01-30-2010, 12:53 AM
RE: Alternative for wait statement. - by adpbinu - 02-05-2010, 01:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with wait property function kp_usa 3 4,020 12-20-2012, 10:49 PM
Last Post: kp_usa
  wait QAVA 1 2,802 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,840 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,286 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 3,883 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)