Writing tests for an android app that logs into Facebook: UIAutomator can't fill in text in Facebook's username field
问题 From this question/answer I got the idea to use UIAutomator to test my app that requires logging into Facebook. Writing tests for an Android app that logs into Facebook I tried UiObject2 editText = mDevice.findObject(By.clazz("android.widget.EditText")); editText.setText("test@email.com"); As well as other things but whatever I do I can't get it to fill out the field. I used hierachyviewer tool to see that it was an EditText. It's a webview, though, so I don't know. Is this possible? My full