cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

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

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.

View solution in original post

1 REPLY 1
Community Leader

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

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.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors