@Test public void when_the_focus_is_not_ajaxRendered_then_no_element_should_have_focus_after_ajax() { browser.get(contextPath.toExternalForm()); assertEquals(input1, focusRetriever.retrieveActiveElement()); // when input2.click(); // then guardAjax(ajax).click(); waitAjax().until(new ElementIsFocused(null)); }
private WebElement getFocusedElement() { return FocusRetriever.retrieveActiveElement(); }