質問

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

役に立ちましたか?

解決

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 

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top