Forum Discussion

nisgupta's avatar
nisgupta
Valued Contributor
7 years ago

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.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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-types.html 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.