In Robotium, click on the QuickAction icons

Can any body tell me how to click on the quick action icon [buttons visible on the screen only with the icon and without text labels) in the robotium. I need to automate some test cases, but I cannot automate how to click the quick action icon.

Thank you Manjou

+4
source share
2 answers

enter image description here

click on the first quick icon - solo.clickOnImageButton(0); OR solo.clickOnImage(0);

click the second shortcut icon - solo.clickOnImageButton(1); OR solo.clickOnImage(1);

+2
source

By quick action icon do you mean MenuItem in an ActionBar? You can click those in the overflow (and those shown with Text) with solo.clickOnMenuItem ("MenuItemTitle");

I'm currently looking for a way to click those that don't have a visible title.

0
source

Source: https://habr.com/ru/post/1411293/


All Articles