public void verifyNewEnquiryFormPresence() { solo.waitForCondition( new Condition() { @Override public boolean isSatisfied() { Activity currentActivity = solo.getCurrentActivity(); View enquirerNameView = currentActivity.findViewById("enquirer_name".hashCode()); EditText enquirerNameEditText = (null == enquirerNameView ? null : (EditText) enquirerNameView.findViewById(R.id.value)); String enquirerNameText = (null == enquirerNameEditText ? null : enquirerNameEditText.getText().toString()); return (null != enquirerNameText) && ("".equals(enquirerNameText)); } }, 10000); solo.searchButton("Save"); }
public void verifyEnquirerDetails(List<String> enquirerDetails) { solo.searchButton("Edit", true); selectFormSection("Enquirer Details"); Assert.assertTrue(solo.searchEditText(enquirerDetails.get(0).toString())); }