I want to check if button is enabled or disabled in mobile

All solutions i figured out was about WebUI ( ```

Mobile buttons should have an attribute called “enabled” which should be true or false. You should be able to check if the button is enabled or not by:

Mobile.verifyElementAttributeValue(findTestObject('/path/to/object'), 'enabled', 'true', 10)

You can read more up on the keyword here:

Sorry, I didn’t read your question closely enough. The above will make sure that the button is enabled. If you just want to check if it is enabled or not you could use:

Mobile.getAttribute(findTestObject('path/to/object'), 'enabled', 10)