@ Override public Object executeJavaScript ( String code ) throws CrawljaxException { try { JavascriptExecutor js = ( JavascriptExecutor ) browser ; return js . executeScript ( code ) ; } catch ( WebDriverException e ) { throwIfConnectionException ( e ) ; throw new CrawljaxException ( e ) ; } }
Execute JavaScript in the browser .