Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

scrollTo in ViewActions cannot be applied to (org.hamcrest.Matcher<android.view.View> #1

Closed
vmarasow opened this issue Oct 26, 2015 · 3 comments

Comments

@vmarasow
Copy link

Line: 124 - Getting an error that scrollTo doesn't work with a Matcher as a parameter

https://github.com/googlecodelabs/android-testing/blob/master/app/src/androidTest/java/com/example/android/testing/notes/notes/NotesScreenTest.java

@slinzner
Copy link
Collaborator

Hey thanks for reporting this. Would be great to get a bit more info. Can please paste the logcat output here? Also would be great to know which device/emulator you're running on.

@vmarasow
Copy link
Author

My bad, auto imports imported from the wrong package

@aeroechelon
Copy link

Had run into the same issue as well. There were unreferenced imports that were automagically being cleaned up (then replaced with incorrect imports) by Android Studio.

For future developers go to:

image

And uncheck Optimize imports on the fly.

slinzner pushed a commit that referenced this issue May 10, 2016
"Navigate up" is translated for other language, so it is correct only on English environment.
jfschmakeit pushed a commit to jfschmakeit/android-testing that referenced this issue May 13, 2016
…ining#1

"Navigate up" is translated for other language, so it is correct only on English environment.
arpitagarwal1301 added a commit to arpitagarwal1301/android-testing that referenced this issue Sep 26, 2020
…arter_code

Updating to googlecodelabs repo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants