Determining whether a button is enabled or disabled (Silk4J)

262 views Asked by At

I am testing a SAP GUI application and I need to find out whether a button is enabled or disabled.

I have read the MicroFocus documentation for the SapButton class, but I can't find a method like getEnabled(), isEnabled() or getDisabled() or isDisabled().

How can I find out whether a button is enabled or disabled?

1

There are 1 answers

0
Thomas Weller On BEST ANSWER

The enabled/disabled state is hidden behind the Changeable property. Since the online documentation is for C#, this maps to isChangeable() in Java.

The isChangeable() does not only get the enabled state for buttons but also for comboboxes, checkboxes and potentially others.

IMHO the documentation

Gets whether an object is changeable.

is a bit misleading.