cancel
Showing results for 
Search instead for 
Did you mean: 

getting error The window size is (0, 0);

Occasional Contributor

getting error The window size is (0, 0);

I recorded in test complete and during playback I am getting the error.
How to solve this.
 
The window size is (0, 0); the screen rectangle: the left top corner is (0, 71), the right bottom corner is (0, 71).

Tested object:
Aliases.browser.pageHpeServiceDirector3.panelNgView.panel2.panel.panel.panel.panelHpesdOrderEntry.panel.panel.formFormctrl.panel.link3
(Sys.Browser("chrome").Page("http://10.191.206.53:3000/workspaces/hpesd_order_entry").Panel("ng_view").Panel(1).Panel(0).Panel(0)...))
2 REPLIES 2
Community Hero

Re: getting error The window size is (0, 0);

Hi,

 

The error means what it says: for some reason the link3 object has zero size and thus cannot be clicked.

You need to find this object in the Object Browser and analyze why its size is zero. There may be different reasons for this. For example, the object may be hovered over by some other UI element which end-user should interact with and the link is used by some script code, but not directly by end-user. Or the link may be within some area that is hidden (by setting its size to zero). After you will figure-out why the link3 element has zero size, you, most probably, will need to analyze the namemapping done automatically by TestComplete for the link3 object and correct it so that the corrected mapping points to the correct (visible) UI element.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted
Community Hero

Re: getting error The window size is (0, 0);

One possible reason for the zero size could be timing.... if the action prior requires some additional processing (server side or client side) for the link3 to actually be rendered on screen, then the automation could be attempting to click on the link before it's actually ready to be clicked.  I'd look at adding some checks to verify that the object is available to be clicked... a "Wait" method called on the page or a WaitProperty on link3 to wait for the height/width to be non-zero and a "throw" call if the property doesn't render within a particular  set time frame.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
Watch the new interview