0

During script execution in TestComplete, I encounter an error when displaying the desktop application window. TestComplete throws an error: "testcomplete c#script runtime error. object doesn't support this property or method" at the moment of checking whether the window exists.

    while (!p["WaitWinFormsObject"]("ConfigStatusDialog",1000)["Exists"])
       w["Keys"]("[F2]")

Name of my Window is ConfigStatusDialog and it is visible in applicattion (in TestComplete "Exists" is True.

enter image description here

2
  • Hi @kollodziej, just an idea / a guess: Sometimes TestComplete does not necessarily recognize the exact line in the code that is causing the problem. Is perhaps the variable w in your code undefined? Maybe one more little thing: Your while loop is not secured against 'eternal success'. I mean if after thirty thousand times w["Keys"]("F2") the configuration dialog still exists (for whatever reason), then a stackoverflow (I love that word :-)) can indirectly cause nonsense. (?). I hope, this helps. Regards. Commented Feb 8, 2024 at 15:58
  • @primehunter unfortunately changing it didn't help Commented Feb 19, 2024 at 15:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.