Forum Discussion

A_Roskoshnyi's avatar
A_Roskoshnyi
Contributor
11 months ago

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:

  1. eval(pobjEdit) give a error, if object cannot be evaluated. Why? Please, make a null-object again.
  2. 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!!!
No RepliesBe the first to reply