print an error message for ShouldHaveFocus test