Check Out the Latest News About SmartBear Connect
Reply
Frequent Contributor
Posts: 92
Registered: ‎10-03-2016

Button -objectType showing as panel

TestComplete is recognizing the button Update as Object Type - Panel 

It should be Button.

Attached the details in the screenshot.

Posts: 4,010
Topics: 35
Kudos: 1,334
Solutions: 272
Registered: ‎11-30-2009

Re: Button -objectType showing as panel

The recognition of an object as a particular object type is dependant upon recognized classes.  My guess is that this particular object is rendered as simply another "div" panel because it isn't actually classed in the html to be recognized as a "button" object type.   It does have a class of btn btn-md btn-success pull-right as indicated in the class name property so it is a button according to your web code.  Reference https://support.smartbear.com/testcomplete/docs/app-testing/web/general/object-identification/object... to see why things are marked "Panel" and what things are marked "Button".  In this case, it's a "div", so it's a Panel.  If it was a <INPUT TYPE="BUTTON"> then it would show up as a button in your name mapping.

 

This shouldn't make any difference in actually being able to use the object.  You can still send a "Click" command to the object and it will receive the click as if any mouse click is done.  You can also change the alias name to "buttonUpdate" if you want.  While it is mapped as a panel, for visibility and readability, you can name it whatever you want.


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.

Extensions available
Community Leaders Program
Highlighted
Frequent Contributor
Posts: 92
Registered: ‎10-03-2016

Re: Button -objectType showing as panel

Thank you for the updates .

Try QAComplete Now