Ask a Question

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

mithunpal2
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
AlexKaras
Champion Level 3

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 Champion]
____
[Community Champions] 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. Posts made by [Community Champions]
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.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
tristaanogre
Esteemed Contributor

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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: