Check Out the Latest News About SmartBear Connect

Want More?

Register to get access to exclusive content

Reply
Contributor
Posts: 62
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: 3,764
Topics: 33
Kudos: 1,160
Solutions: 241
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
Contributor
Posts: 62
Registered: ‎10-03-2016

Re: Button -objectType showing as panel

Thank you for the updates .

Let's Meet in Boston
Try QAComplete Now