@Test(timeout = 5000)
public void should_find_element_immediately_if_a_previous_step_has_failed() {
SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);
StepEventBus.getEventBus().stepFailed(failure);
locator.findElement();
}
@Test(timeout = 5000)
public void should_find_elements_immediately_if_a_previous_step_has_failed() {
SmartAjaxElementLocator locator = new SmartAjaxElementLocator(driver, field, 5);