simmy189 / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Is the action "longClick()" gone? #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To complete my tests, I would like to use the perform( longClick()). This is in 
the source code of the Espresso project, but it is not available at complile 
time. Is it removed? 

What steps will reproduce the problem?
* In Eclipse my Test project is running well. 
* In Eclipse this works well: 
        button1 = onView( withId( R.id.home_folders)); 
    button1.perform( click());
Then I would like to replace the click by a longClick()
        button1 = onView( withId( R.id.home_folders)); 
    button1.perform( longClick());
But ... Eclipse doesn't allow me to use longClick. 
   Also "doubleClick" disappeared but all other actions (as seen in the source code of Espresso) are there. 

What is the expected output? What do you see instead?
* I would (desperately) like to use longClick to complete my tests. 

What version of the product are you using? On what operating system?
* Windows 8
* Eclipse
* Espresso 1.1 jar (standalone)

Please provide any additional information below.

Original issue reported on code.google.com by johan...@gmail.com on 12 Aug 2014 at 10:26

Attachments:

GoogleCodeExporter commented 9 years ago
User defect. Import static ... is the right way. 

Original comment by johan...@gmail.com on 22 Aug 2014 at 9:03

GoogleCodeExporter commented 9 years ago
longClick... where are you?!

Ah, here you are: 
https://code.google.com/p/android-test-kit/source/browse/espresso/lib/src/main/j
ava/com/google/android/apps/common/testing/ui/espresso/action/ViewActions.java#1
57

:)

Guessing you're missing a static import in your test code.

Original comment by vale...@google.com on 19 Nov 2014 at 10:29

GoogleCodeExporter commented 9 years ago
And I did not see your comment before replying (my bad).

Original comment by vale...@google.com on 19 Nov 2014 at 10:29