heidi_n
8 years agoRegular Contributor
Help with "Zero-sized Window" error?
Hi, I'm getting a "Zero-sized Window" error on this line: homePageObjects.getPrimaryMenuSearchOutput().Click(); Any advice? /*
*Navigate from Main Menu to Module
*/
var homePageObjects...
- 8 years ago
Zero sized window usually means that the object in question is present but has height and width of zero each at the time the "Click" operation is attempted. Looking at your code, there's an action that is happening before that code. My guess is that the automation code is moving faster than the application can render your components. This is what we call a "timing issue". Apparently, something that is supposed to bring that window up in your application is not finished processing yet. You'll need to add some sort of "Wait" methodology before your call to make sure that the appropriate stuff is rendered. It could either be in the code you have already posted or somewhere within the object you're importing.