01-30-2010, 12:53 AM
[/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.
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.