Forum Discussion

ackmondual's avatar
ackmondual
Contributor
4 years ago

False positives with the disable function

TestComplete for an Android application.  I've been playing around with both the enable and disable functions on buttons.  These are accessed from the Name Mapping objects.  I right click and select Highlight to ensure that the right button/object is being highlighted.  I've noticed that the disable function seems to return True no matter what.

 

Just to be sure, if an Android button is enabled, that means the user can click/tap on it right?  As your finger is on the button, it'll highlight to show it's been tapped on (whether or not the button does anything meaningful beyond that is another thing entirely).

 

Likewise, if an Android button is disabled, that means it's "grayed out".  Meaning it will NOT accept any touch inputs?

 

I found the SmartBear page here, but would like to know if there are more details elsewhere...

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/standard/button/checking-state.html