Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BetterSpinner is not recognized by Espresso for retrieving Data #76

Open
JairAviles opened this issue May 29, 2017 · 0 comments
Open

BetterSpinner is not recognized by Espresso for retrieving Data #76

JairAviles opened this issue May 29, 2017 · 0 comments

Comments

@JairAviles
Copy link

Regarding the Espresso basics (go here) You could implement the following snippet in order to tap a string value on the spinner.

onData(allOf(is(instanceOf(String.class)), is("Americano"))).perform(click());

However, when validating the is() methods it is causing conflict and its throwing and exception during Compile time:

error: method is in class MyClass cannot be applied to given types;
        onData(allOf(is(instanceOf(String.class)), is(protocol))).perform(click());
                                                   ^
  required: Class<T>
  found: String
  reason: cannot infer type-variable(s) T
    (argument mismatch; String cannot be converted to Class<T>)
  where T is a type-variable:
    T extends MyClass declared in method <T>is(Class<T>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant