Closed GoogleCodeExporter closed 9 years ago
solo.sendKey(Solo.MENU);
solo.clickOnText("Settings");
and
solo.clickOnMenuItem("Settings");
Worked but problem is it's opening menu in the middle of the screen by which
one of the button is going below the list slmost invisible so canot perform
click on that it says..
junit.framework.AssertionFailedError: Click at (384.0, 1192.0) can not be
completed! (java.lang.SecurityException: Injecting to another application
requires INJECT_EVENTS permission)
Original comment by shiva...@triveous.com
on 1 Apr 2015 at 12:06
When you say clickOnActionbarItem(0x1) used to work before, do you mean in the
last version it worked and now its not?
Original comment by renasr...@gmail.com
on 1 Apr 2015 at 4:01
[deleted comment]
@rwnasr clickOnActionbarItem(0x1) was working on old action bar but now I have
changed my action bar to latest appcomat action bar.
solo.clickOnActionBarItem(0x1); //Not working
//works but menu is opened in the middle of the screen because of that my app
button moved down(almost invisible) and because of that I cannot click on the
button.
solo.sendKey(Solo.MENU);
solo.clickOnText("Settings");
solo.clickOnMenuItem("Settings");
Please help me.
Original comment by shiva...@triveous.com
on 9 Apr 2015 at 1:19
clickOnActionbarItem does not support the appcomat action bar. What you can do
is to use solo.clickOnView(solo.getView(String id)) where you provide the ID of
the actionbar. You can also try:
solo.clickOnView(solo.getView(android.widget.ImageButton.class, 0));
Original comment by renasr...@gmail.com
on 16 Apr 2015 at 10:58
Original issue reported on code.google.com by
shiva...@triveous.com
on 1 Apr 2015 at 11:32