Right now im testing on Android 4.1.1
. using Robotium
and trying to click on a image button using the id, because solo.clickonImage
or solo.clickonImageButton
is not working.
The thing is, I don't know how to import or include the R.java
file to get the ID. I could see it from the hierarchy viewer, but it still gives me an error when i place the variable in the code.
in my test scripts my R.java
doesn't have much in it, therefore can't read id.
How am I suppose to import the developers ID into my test project?
EDIT: actually i found this programmatically add id to R.id . now my question is, how does my program know what the id is pointing to. example i've created:
< item name = "camera_menu_upload" type="id"/>
How does my script know what camera_menu_upload is on the screen??