12-02-2010, 01:03 PM
In the line:
you are overwriting the variable that used to hold the object. Create a new variable to hold the original innerhtml of the test object.
Code:
var_date = var_date.GetTOProperty("innerhtml")
you are overwriting the variable that used to hold the object. Create a new variable to hold the original innerhtml of the test object.
Code:
Browser("MyPurolator Login - Purolator").Page("MyPurolator Home - Purolator").Link("Create a Shipment").Click
Browser("MyPurolator Login - Purolator").Page("Purolator E-Ship Online").Sync
Set var_date = Browser("MyPurolator Login - Purolator").Page("Purolator E-Ship Online").WebTable("WebTable")
var_innerhtml = var_date.GetTOProperty("innerhtml")
MsgBox var_innerhtml
var_innerhtml = replace(var_date, "2010-12-11 ", "2010-12-02 ")
MsgBox var_innerhtml
var_date.SetTOProperty "innerhtml", var_innerhtml
MsgBox var_date.GetTOProperty("innerhtml")