public void should_wait_for_find_element_immediately_if_no_previous_step_has_failed() {
expectedException.expect(NoSuchElementException.class);
expectedException.expectMessage(containsString("Timed out after 1 second"));
SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 1);
locator.findElement();
}