Pergunta

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

Foi útil?

Solução

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 

Outras dicas

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)".

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top