Thomas Weller
Thomas Weller

Reputation: 59279

Determining whether a button is enabled or disabled (Silk4J)

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?

Upvotes: 1

Views: 250

Answers (1)

Thomas Weller
Thomas Weller

Reputation: 59279

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.

Upvotes: 1

Related Questions