public bool EnterText(Func <AppQuery, AppQuery> query, string text) { AppResult[] results = Query(query); if (results.Length > 0) { bool result = session.Select(results [0]); if (!result) { return(false); } return(session.EnterText(results [0], text)); } return(false); }