Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to click on the action bar menu items #553

Closed
renas opened this issue Aug 20, 2015 · 8 comments
Closed

Unable to click on the action bar menu items #553

renas opened this issue Aug 20, 2015 · 8 comments

Comments

@renas
Copy link
Contributor

renas commented Aug 20, 2015

From cybageus...@gmail.com on June 12, 2013 00:33:20

What steps will reproduce the problem? 1.I have tried with below code
solo.clickOnMenuItem("Notes");
solo.clickOnActionBarItem(id);
solo.clickOnImage(index);
solo.clickOnText("Notes");

but it did not click on the expected menu item. What is the expected output? What do you see instead? It should click on the 'Notes' text/image and open the respective screen/activity. What version of the product are you using? On what operating system? using emulator platform 4.2.2 with API level 17. Please provide any additional information below.

Original issue: http://code.google.com/p/robotium/issues/detail?id=474

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From cybageus...@gmail.com on June 12, 2013 00:40:25

Please find attachment for the same. Thanks!

Attachment: snap.png

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From renasr...@gmail.com on June 12, 2013 20:11:04

  1. Are you using ActionbarSherlock?
  2. Does the bar belong to another process?

Owner: renasr...@gmail.com

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From cybageus...@gmail.com on June 12, 2013 23:39:49

Hi,

I am not sure if developer used Actionbarsherlock? I am having only APK file and using that I am doing automation. Also could you please provide more detail on "Does the bar belong to another process?" ...Many Thanks!

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From renasr...@gmail.com on June 13, 2013 08:46:43

Unfortunately there is nothing that can be done about this. Robotium gets the views from the platform. If ActionbarlSherlock is used or the bar belongs to another process then Robotium is not allowed (by the Android platform) to interact with it.

Status: Invalid

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From alai...@gmail.com on August 12, 2013 02:49:12

so there is no solution or hack for testing apk that uses actionbar sherlock ?

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From renasr...@gmail.com on August 12, 2013 02:51:18

Maybe this extension can help: https://github.com/atermenji/robotium-actionbarsherlock

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From ramda...@gmail.com on November 27, 2013 03:32:05

This Should work along with lib robotium-actionbarsherlock
if (Build.VERSION.SDK_INT < 11) {
solo.clickOnActionBarHomeButtonCompat();
}
else {
solo.clickOnActionBarHomeButton();
}

@renas
Copy link
Contributor Author

renas commented Aug 20, 2015

From itsprabh...@gmail.com on April 16, 2015 02:58:11

I wanted to click on menu bar but was not able to do it easily , Then finally did it using solo.clickOnButton(int index), For me there was just one menu bar , So I was able to click it easily, You can try it too. Its a long shot , You might have to guess it.

@renas renas closed this as completed Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant