DenisMedvedev
9 years agoContributor
How get object reference?
The bellow code works fine with system SetText(string) method
ODT.Data.CustomerTextField.GetObject().SetText("test")
GetObject method reterns me NameMapping.Sys.Orders.OrderForm.Group.Customer object
I have my own SetValue method wih bellow code
function SetValue(text){ HereShouldBeObject .Keys(text + "[Enter]") }
The question is how to get object in SetValue method, to do bellow code works?
ODT.Data.CustomerTextField.GetObject().SetValue("test")
Will be glad to have any help.
Thanks in advance, Denis
You're basically asking to add user-defined functions (SetValue) onto TestComplete defined objects (Aliases.blah...). As far as I'm aware that's not possible.