0
|----------------------------------------------|
| **Menu1**|**Menu2**|**Menu3**                |
|----------------------------------------------|                                              |
|                                              |
|                                              |
|                                              | 
|                                              |
-----------------------------------------------|                                              | 

Tried with all the options such clickOnImage, ClickonImageButton,ClickonMenu, ClickonMenuItem,ClickonText etc.. but none of the methods work.. please let me know the way to access the Menu placed in the ActionBar...

dmon
  • 30,048
  • 8
  • 87
  • 96

1 Answers1

0

You can use:

getInstrumentation().invokeMenuActionSync(mActivity, R.id.menu_item_id, 0);
Renas
  • 1,919
  • 1
  • 18
  • 17