/src/main/java/org/htmlunit/html/DomElement.java
if ( getPage( ).getWebClient( ).isJavaScriptEnabled( ) ) { return ( P) getPage( ).getWebClient( ).getCurrentWindow( ).getEnclosedPage( ) ; }
return ( P ) getPage ( ) .getWebClient ( ) .getCurrentWindow ( ) .getEnclosedPage ( ) ;
if ((!ignoreVisibility && !isDisplayed()) || isDisabledElementAndDisabled()) { return (P) page; } if (!page.getWebClient().isJavaScriptEnabled()) { doClickStateUpdate(shiftKey, ctrlKey); page.getWebClient().loadDownloadedResponses(); <extra_id_0> } final Page contentPage = page.getEnclosingWindow().getEnclosedPage(); boolean stateUpdated = false; boolean changed = false; if (isStateUpdateFirst()) { changed = doClickStateUpdate(shiftKey, ctrlKey);