Forum Discussion
Hello hina,
I thought you were right to try a delay. I did a quick community search and found 2 related solved issues. Could you post a code snip? Are you scripting or Keyword testing?
Help with "Zero-sized Window" error? | SmartBear Community
There was an attempt to perform an action on zero sized window | SmartBear Community
Another idea is to verify the object state or insert a waitproperty method call.
WaitProperty Method:
https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/waitproperty-method.html
... If you find my posts helpful drop me a like! 👍 Be sure to mark or post the solution to help others out and/or to credit the one who helped you. 😎
Hi scot1967,
Thank you for your reply. Here is my code:
function test()
{
var WA = Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar")["WinFormsObject"]("WorkAreaView")["WinFormsObject"]("TV")["OutlineItem"]("TestComplete Work Area 1*");
WA["Refresh"]();
Delay(1000);
WA["WaitProperty"]("VisibleOnScreen","True",2000);
WA["Click"]();
}
I tried the WaitProperty method, it works sometimes and sometimes it doesn't.