12-16-2009, 05:34 AM
(This post was last modified: 12-16-2009, 05:41 AM by sunnyvale69.)
Hi - My web application is pretty simple. Login and click an order number. I recorded below script for Order# 434500. When I try to change the script for a different order number(434501) it does not work (complains The "434501" Link Object was not found in the Object Repository. Check the Object Property to confirm that the object exists or to find the correct name for the object)...
Could someone help me? The only thing I changed in the below script is "change 434500 to 434501"..That's it...
BTW, I am changing the above order in Expert View (eventhough I am not the expert )
Could someone help me? The only thing I changed in the below script is "change 434500 to 434501"..That's it...
Code:
Browser("Acme - Welcome").Page("Acme - Welcome").WebEdit("uid").Set "qauser"
Browser("Acme - Welcome").Page("Orders 3.0 - Welcome").WebEdit("pwd").Set "password"
Browser("Acme - Welcome").Page("Orders - Welcome").WebEdit("pwd").Submit
Browser("Acme - Welcome").Page("Orders").Link("Orders").Click
Browser("Acme - Welcome").Page("Acme • Orders_2").Link("434500").Click
Browser("Acme - Welcome").Page("Acme • Orders_3").Link("Logout").Click
Browser("Acme - Welcome").Page("Acme - Welcome_2").Sync
Browser("Acme - Welcome").Close[hr]