Comments (9)
Thanks for this. This will be fixed in the next release.
Original comment by [email protected]
on 7 Dec 2010 at 10:20
- Changed state: Accepted
from robotium.
This issue has been resolved in Robotium 2.0
Original comment by [email protected]
on 7 Dec 2010 at 7:37
- Changed state: Verified
from robotium.
While the KeyCode of Solo.LEFT has been changed, the function does not provide
the possibility to perform mySolo.sendkey(KeyEvent.KEYCODE_HOME).
Maybe changing the following procedure in Solo like that:
public void sendKey(int key)
{
switch (key) {
case RIGHT:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_DPAD_RIGHT);
break;
case LEFT:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_DPAD_LEFT);
break;
case UP:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_DPAD_UP);
break;
case DOWN:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_DPAD_DOWN);
break;
case ENTER:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_ENTER);
break;
case MENU:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_MENU);
break;
case DELETE:
robotiumUtils.sendKeyCode(KeyEvent.KEYCODE_DEL);
break;
default:
try {
robotiumUtils.sendKeyCode(key);
} catch (Exception e) {
// TODO: handle exception
}
break;
}
}
Original comment by [email protected]
on 17 Dec 2010 at 9:32
from robotium.
Thanks for this, I have updated sendKey now.
Original comment by [email protected]
on 28 Dec 2010 at 8:52
from robotium.
Unless I am wrong this issue has reappeared in version 2.1
A manual click in the emulator works fine.
Using robotium with
solo.sendKey(KeyEvent.KEYCODE_HOME);
does not take the application to Home screen
Original comment by [email protected]
on 16 Feb 2011 at 9:52
from robotium.
Setup for Comment 5:
Using Android 2.2
OS: Ubuntu Linux 10.04 in a VirtualBox 3.2.12 hosted on Windows 7
Original comment by [email protected]
on 16 Feb 2011 at 9:56
from robotium.
No, it has not reapeared. Its not for sure that KEYCODE_HOME does take one to
the homescreen. If you e.g. try solo.sendKey(KeyEvent.KEYCODE_VOLUME_UP) or any
other KeyEvent that is working fron an application point of view you will see
that it works.
Original comment by [email protected]
on 16 Feb 2011 at 10:01
from robotium.
Sorry for bothering but why is not guaranteed that KEYCODE_HOME takes you to
the Home screen ?
From the API documentation one can read that KEYCODE_HOME is never delivered
to the application, is this the problem?
-------------------snip---------------------------------
public static final int KEYCODE_HOME
Since: API Level 1
Key code constant: Home key. This key is handled by the framework and is never
delivered to applications.
Constant Value: 3 (0x00000003
-------------------/snip----------------------------------
Original comment by [email protected]
on 16 Feb 2011 at 10:24
from robotium.
I asked about this here:
http://stackoverflow.com/questions/25184160/android-instrumentation-home-button
Original comment by [email protected]
on 7 Aug 2014 at 1:47
from robotium.
Related Issues (20)
- ConcurrentModificationException when calling Solo.finishOpenedActivities HOT 9
- WaitForView using resource id doesn't return until timeout is reached, even when a match is found HOT 4
- xpath result contains only one html node HOT 1
- Robotium Recorder failing to launch app on mobile device HOT 3
- Cannot Run robotium tests after save HOT 5
- ActivityUtils.getCurrentActivity() fails when dialog-styled activities change orientation HOT 1
- Unable start new Recording HOT 6
- When using Solo.clickOnActionBarHomeButton, can't click on text on the NavigationDrawer HOT 8
- Solo waitForDialogToOpen() continues on shown toast message HOT 1
- Problems to setting date in date picker HOT 1
- clickOnActionBarItem(0x1) is not working. HOT 5
- How to generate the robotium test reports? HOT 2
- Not able to click on ImageView in the list view list item HOT 1
- clickontext dosen't work in listview and orientation of phone is landscape HOT 1
- Robotium 5.3.0 crash problem (ActivityMonitor thread?) HOT 3
- RobotiumWebClient cannot be cast to org.apache.cordova.engine.SystemWebChromeClient HOT 1
- images drawn on Canvas HOT 1
- Is it possible to do Android Robotium with JBehave White box automation using source project? HOT 1
- Potential memory leak in SoloEnhanced HOT 2
- Robotium not working with cordova 3.6.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotium.