public WebLocator focus() {
        boolean focus = waitToRender();
        assertThat("Element was not rendered " + toString(), focus);
        focus = executor.focus(this);
        assertThat("Could not focus " + toString(), focus);
        LOGGER.info("focus on {}", toString());
        return this;
    }
public WebLocator focus ( ) { boolean focus = waitToRender ( ) ; assertThat ( "Element was not rendered " + toString ( ) , focus ) ; focus = executor . focus ( this ) ; assertThat ( "Could not focus " + toString ( ) , focus ) ; LOGGER . info ( "focus on {}" , toString ( ) ) ; return this ; }
Using XPath only

@return true | false