A_Roskoshnyi
2 years agoContributor
Freakly Exception
Testcomplete version: 15.51.18.7 x64
Applying: WPF-Application
Look at this part of previously working code:
//pobjEdit - alias for editable TextBox object, passed as a parameter
//in legacy tests this is a string
//in new tests - OnScreen object
//for compatibility is using eval()
pobjEdit = eval(pobjEdit);
if(pobjEdit["Exists"] && aqObject["IsSupported"](pobjEdit,"Focus"))
{
aqObject["CallMethod"](pobjEdit,"Focus");
}
Results now after test running:
- eval(pobjEdit) give a error, if object cannot be evaluated. Why? Please, make a null-object again.
- some magic at "CallMehod" - Execption "JScript runtime error. The object does not support this property or method." It sometimes works, such as running the test again or set a breakpoint, but not always!!!