In the below object:

JavaWindow("label:=File: Test.java*").JavaMenu("label:=File").JavaMenu("label:=Open").Select

Problem: If 'Open' menu item is disabled under 'File' menu, the select function still passes !

Question: Is there any way to make the function fail if any menu item is disabled?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.