Why wouldn't this work?

47 views
Skip to first unread message

Ann

unread,
Jan 17, 2011, 3:19:38 PM1/17/11
to Robotium Developers
Hi

ImageButton moreButton = ( ImageButton )
solo.getCurrentActivity().findViewById(R.id.moreButton );
solo.clickLongOnView(moreButton, 100);

Can you please suggest why clickLongOnView work?

Thanks
Anjana

Ann

unread,
Jan 17, 2011, 3:44:02 PM1/17/11
to Robotium Developers
> Can you please suggest why clickLongOnView would click another View?
>
> Thanks
> Anjana

Ann

unread,
Jan 17, 2011, 3:45:10 PM1/17/11
to Robotium Developers
Sorry, I am reframing my question

ImageButton moreButton = ( ImageButton )
solo.getCurrentActivity().findViewById(R.id.moreButton );
solo.clickLongOnView(moreButton, 100);


Can you please suggest why clickLongOnView is clicking another View?


Thanks
Anjana





On Jan 17, 3:19 pm, Ann <anjana1...@gmail.com> wrote:

Renas Reda

unread,
Jan 17, 2011, 4:12:31 PM1/17/11
to Robotium Developers
Hi,

Please have a look at: "Why do text and button clicks get wrong?"

http://code.google.com/p/robotium/wiki/QuestionsAndAnswers

/Renas

Ann

unread,
Jan 17, 2011, 4:36:26 PM1/17/11
to Robotium Developers
Renas


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xyz.phone.test"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">

<uses-library android:name="android.test.runner" />
<supports-screens android:anyDensity="true"/>
</application>
<uses-sdk android:targetSdkVersion="8" />
<instrumentation android:targetPackage="com.xyz.phone"
android:label="PhoneTests"
android:name="android.test.InstrumentationTestRunner" />
</manifest>

IS <supports-screens android:anyDensity="true"/> at right place?
Thanks

Ann
> > > Anjana- Hide quoted text -
>
> - Show quoted text -

Renas

unread,
Jan 17, 2011, 4:42:38 PM1/17/11
to robotium-...@googlegroups.com
It should be added to the application under test (if click problems exist). And not the test project. 

/Renas


--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To post to this group, send email to robotium-...@googlegroups.com.
To unsubscribe from this group, send email to robotium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotium-developers?hl=en.


Ann

unread,
Jan 17, 2011, 4:56:09 PM1/17/11
to Robotium Developers
So you mean to say the location is correct <supports-screens
android:anyDensity="true"/> but put in the manifest of application
under test.

Also <uses-sdk android:targetSdkVersion="8" /> in manifest of
application under test.

Thanks
Ann
> > robotium-develo...@googlegroups.com<robotium-developers%2Bunsu­bsc...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/robotium-developers?hl=en.- Hide quoted text -

Ann

unread,
Jan 18, 2011, 9:22:12 AM1/18/11
to Robotium Developers
Renas,

Its working. I am going to use it further. Thanks so much. That saved
so much of grief for me.

Ann.
> > >http://groups.google.com/group/robotium-developers?hl=en.-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages