Question

Anyone please tell me the command to verify whether the option is enabled or disabled using Monkey-talk.

Was it helpful?

Solution

You should be looking at the .enabled property is true or false. Here is an example:

Button login_button Verify 1 .enabled 
Button login_button Verify 0 .enabled 

OTHER TIPS

Two ways:

  1. Search for the button name in the component tree and see the state whether it is visible / hidden.

  2. If there is a button named "LOGIN", the mt command, "Button LOGIN Verify" will check whether LOGIN button is visible on the screen. If it is visible on the screen, it returns "Completed Script Playback - OK". If LOGIN button is hidden or not available in the activity, then returns, "FAILURE: Unable to find Button(LOGIN)".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top