How to check Button enabled or not ? explain also for Text box

Hi Can any one tell me,
1.How to check whether the button is Enabled or not ?
2.How to check whether the text box/field is Editable or not ?
This is for ANDROID

When you identify the object using uiautomatorviewer or appium inspector, in properties it will show you whether button is enabled and editable properties for textbox.

You can use element.getAttribute(“enabled”), it will return you true or false.

1 Like

Yeah agree with the @Sumeet_Panjabi’s answer.

You can also use, element.isEnabled() method for this.

1 Like