SmartBear Connect 2018
Join us at SmartBear Connect 2018 on October 29th & 30th in Boston, MA.
Come meet the team behind your tools – get your ticket today!
Frequent Contributor

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: 5,584
Topics: 43
Kudos: 2,469
Solutions: 499
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 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
Frequent Contributor

Re: Button -objectType showing as panel

Thank you for the updates .