Issue
I want to match the user name text field inside a WebView which loads the Salesforce login page (but can also be applied to any other page with text fields).
I have tried with:
onView(withHint("User Name")).perform(typeText("[email protected]"));
But that doesn't work. Any better idea?
Solution
This can be accomplished using Espresso Web 2.2 API
onWebView().withElement(findElement(Locator.ID,"username")).perform(webKeys("[email protected]"));
Answered By - Nikitha
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.