Forum Discussion

ackmondual's avatar
ackmondual
Contributor
4 years ago
Solved

Is it typical for buttons in popup/dialog box to not appear via the Highlight option?

Using TestComplete 14.0.317.7 x64

Testing an Android app running on Android 7

 

I'm mapping out button options in various dialog/popup boxes (these typically go away if you tap someplace outside their confines).  When I select Highlight, it does highlight them.  However, every time I close the dialog box and reopen them, TC no longer recognizes them via the Highlight button. 

 

However, when I script it, I can consistently reference those buttons (so long as they're visible).  Is this just some odd quirk of how TC interacts with buttons within dialog box, or is there some workaround for this?  At least in the Namemapping & Alias window, I can always use the screenshot at the bottom right as a reference.

  • The operated object can be hightlight , it must be located in Object Browser or NameMapping.

    If the dialog closed and reopened again, the object cannot be hightlight.

    It might be that some instable properties would be mapped in NameMapping.

    Or the operated object cannot be displayed in Object Browser immediately.

    I suggest you to check the property of the object in NameMapping first.

    And add Sys.Refresh() code after open the dialog in script.

1 Reply

  • ApplePen's avatar
    ApplePen
    Community Leader

    The operated object can be hightlight , it must be located in Object Browser or NameMapping.

    If the dialog closed and reopened again, the object cannot be hightlight.

    It might be that some instable properties would be mapped in NameMapping.

    Or the operated object cannot be displayed in Object Browser immediately.

    I suggest you to check the property of the object in NameMapping first.

    And add Sys.Refresh() code after open the dialog in script.