Unable to automate tap on UIMenu element from right bar button item in iPad simulator Portrait mode

I am writing UI Test case for a screen in iPad simulator which is in a split view controller having navigation controller in master and detail VC

On the master VC a right bar button item click a UIMenu with 4 action items will be shown.

In iPhone simulator I am able to tap on right bar button and tap on UIMenu elements through automation test cases.

On running in any iPad simulator in Portrait mode and if I tap on right bar button I get error “Failed to scroll to visible (by AX Action) Button, label: Action Menu error : Error : kAXErrorCaanotComplete performing AXAction 2003 on element”


However if I rotate iPad simulator to landscape mode and try to access UIMenu elements it is working fine.

Has anyone faced similar issue with new UIMenu element automation in Portrait mode from navigation bar.

Thanks
Pradeep

Did you ever figure this out? Running into a similar issue

Unable to automate tap on UIMenu element from right bar button item in iPad simulator Portrait mode
 
 
Q