Bug 915449 - Get EditText view instead of using Solo.getEditText; r=mcomella

This commit is contained in:
Geoff Brown 2014-03-24 16:19:54 -06:00
parent d3be5977e3
commit d1c5c80700

View File

@ -194,11 +194,11 @@ abstract class BaseTest extends ActivityInstrumentationTestCase2<Activity> {
boolean success = waitForCondition(new Condition() {
@Override
public boolean isSatisfied() {
EditText urlEditText = mSolo.getEditText(0);
EditText urlEditText = (EditText) mSolo.getView(R.id.url_edit_text);
if (urlEditText.isInputMethodTarget()) {
return true;
} else {
mSolo.clickOnEditText(0);
mSolo.clickOnView(urlEditText);
return false;
}
}