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

Not able to click on menu item #268

Closed
renas opened this issue Aug 19, 2015 · 4 comments
Closed

Not able to click on menu item #268

renas opened this issue Aug 19, 2015 · 4 comments

Comments

@renas
Copy link
Contributor

renas commented Aug 19, 2015

From snehamon...@gmail.com on November 29, 2011 23:19:02

Hi All,

Please have a loot code below

solo.waitForActivity("xxxxx.RegistrationActivity",200);
solo.searchText("India");
solo.clickOnText("Next");
solo.waitForActivity("xxx.VerifyCodeActivity",200);
solo.clickOnText("Send Text"); //This will invoke the phone SMS App.

Now we need to send the SMS. we are using following code; however it doesn't work.

solo.clickOnMenuItem("Send");

What should be done? essentially test started with one app and now it has moved to another app (sms).

Thanks
Sneha

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

@renas
Copy link
Contributor Author

renas commented Aug 19, 2015

From sergey.t...@gmail.com on November 30, 2011 00:15:50

Do you mean that Send menu item is placed in other app ?
If so you can't use solo there.
Robotium works only in context of your application.

@renas
Copy link
Contributor Author

renas commented Aug 19, 2015

From snehamon...@gmail.com on November 30, 2011 01:14:58

hmmm.. got it..

If i need to automate such scenarios - then what should i do?

Sneha

@renas
Copy link
Contributor Author

renas commented Aug 19, 2015

From renasr...@gmail.com on November 30, 2011 05:48:31

Status: Invalid

@renas
Copy link
Contributor Author

renas commented Aug 19, 2015

From sergey.t...@gmail.com on December 01, 2011 00:04:14

Good news:
You can use monkeyrunner tool http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html You should make python script as described and run it when you want to do this
solo.clickOnMenuItem("Send");

Bad news:
You can only click on coordinates. And send key events.

Hope it helps

@renas renas closed this as completed Aug 19, 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