code: @Override
  	public void eval(String javascript) throws WidgetException {
  		WebElement element = findElement(false);
  		WebDriver wd = getGUIDriver().getWrappedDriver();
  		try {
  			((JavascriptExecutor) wd).executeScript(javascript, element);
  		} catch (Exception e) {
  			long time = System.currentTimeMillis() + 2000;
  			boolean success = false;
  			while (!success && System.currentTimeMillis() < time) {
  				try {
  					((JavascriptExecutor) wd).executeScript(javascript, element);
  					success = true;
  				} catch (Exception e2) {
  					try {
  						Thread.sleep(500);
  					} catch (InterruptedException e1) {
  						// Ignore
  					}
  					e = e2;
  				}
  			}
  
  			if (!success) {
  				throw new RuntimeException(e);
  			}
  		}
  	}
docs: Executes JavaScript code on the current element in the current frame or
  window.
  
  @param javascript
  the javascript code to be executed