Hi,I've been having trouble finding the icons using robotium. I could find some icons using clickonimage, clickonmenuitem, clickonimagebutton, etc.I've even tried to loop through with views.I've read through forms and this command was suggested:getInstrumentation().invokeMenuActionSync(getActivity(), R.id.button1, 0);but I'm not sure how to get the R.id of the menu item....I've attached an image, circling in red the icons i can't read. I would read all other menu items, ( the outer icons)any suggestions?note: i'm using a tablet, 4.1.1Thanks in advance!
Hi,I've been having trouble finding the icons using robotium. I could find some icons using clickonimage, clickonmenuitem, clickonimagebutton, etc.I've even tried to loop through with views.I've read through forms and this command was suggested:getInstrumentation().invokeMenuActionSync(getActivity(), R.id.button1, 0);
but I'm not sure how to get the R.id of the menu item....I've attached an image, circling in red the icons i can't read. I would read all other menu items, ( the outer icons)any suggestions?note: i'm using a tablet, 4.1.1Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotium-developers/-/F3f58naLGBgJ.
To post to this group, send email to robotium-...@googlegroups.com.
To unsubscribe from this group, send email to robotium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotium-developers?hl=en.
I've gotten the id of the icons. THANKS ALOT for that input!!but now, I'm not able to find the R.id.... how do i import something?im putting this: getInstrumentation().invokeMenuActionSync(getActivity(), R.id.camera_menu_upload, 0);and it's returning camera_menu_upload cannot be resolved or is not a field.