11-30-2011, 03:35 AM
I have recorded simple test script using QTP 11.00 with PeopleSoft add-in. I have 500 vouchers (Invoices) that I am trying to delete from PeopleSoft.
This script runs some time and some time not. Thanks for any suggestions!
This is the recorded script:
This script runs some time and some time not. Thanks for any suggestions!
This is the recorded script:
Code:
Browser("Base Navigation Page").Page("Delete Voucher").Link("Delete Voucher").Click
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent_2").WebEdit("VCHR_SRCH_DEL_BUSINESS_UNIT").Set "46666"
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent_2").WebEdit("VCHR_SRCH_DEL_VOUCHER_ID").Set DataTable("VOUCHER_ID", dtGlobalSheet)
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent_2").WebButton("Search").Click
wait 2
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent").WebButton("Delete").Click
wait 2
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent").WebButton("OK").Click
wait 51
Browser("Base Navigation Page").Page("Delete Voucher").Frame("TargetContent").WebButton("OK").Click
wait 9