Forum Discussion
RickAlmeida
Moderator
Hello,
This can happen when the name mapping entry points to an HTML element that has it's height or width attribute set to zero. TestComplete cannot click on it, because it does not occupy any space on the screen. Web developers will often set the height of a <DIV> tag or other element to zero instead of setting it's visible property to false. Your name mapping may also be targeting the wrong element. You should use the object spy on the item that should be clicked, and verify that it's properties in the application match the ones that you defined in the name mapping properties for that object.
Thanks,
Rick
SmartBear Customer Care
This can happen when the name mapping entry points to an HTML element that has it's height or width attribute set to zero. TestComplete cannot click on it, because it does not occupy any space on the screen. Web developers will often set the height of a <DIV> tag or other element to zero instead of setting it's visible property to false. Your name mapping may also be targeting the wrong element. You should use the object spy on the item that should be clicked, and verify that it's properties in the application match the ones that you defined in the name mapping properties for that object.
Thanks,
Rick
SmartBear Customer Care
cristina88
9 years agoOccasional Contributor
I received the same error about zero sized window, did a spy on the object (I could highlight the object fine) and height and width were in the properties with numbers, so they weren't blank. I ended up having 2 buttons of the same name and the first one was failing, so once I removed it, my button worked and the error was fixed on my end.
Related Content
- 8 years ago
Recent Discussions
- 13 hours ago