Pages

Wednesday, 19 October 2011

QTP Script: Override an existing object method


' override the Set method with SetWithDebug
RegisterUserFunc "WebEdit""Set""SetWithDebug"

' =============================================================
' function : SetWithDebug
' desc : Sets the value of an edit box with additional logging
' =============================================================
Function SetWithDebug(objEditstrValue)

' your additional logging here

 

 

' set the text
SetWithDebug = objEdit.Set(strValue)

End Function


0 comments:

Post a Comment