code: @Override
  	public void fireEvent(String event) throws WidgetException {
  		try {
  			String javaScript = null;
  			if (event.startsWith("mouse")) {
  				javaScript = "if(document.createEvent){var evObj = document.createEvent('MouseEvents');evObj.initEvent('" + event
  						+ "', true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject) { arguments[0].fireEvent('on" + event + "');}";
  			} else {
  				javaScript = "if(document.createEvent){var evObj = document.createEvent('HTMLEvents');evObj.initEvent('" + event
  						+ "', true, false); arguments[0].dispatchEvent(evObj);} else if(document.createEventObject) { arguments[0].fireEvent('on" + event + "');}";
  			}
  			eval(javaScript);
  		} catch (Exception e) {
  			throw new WidgetException("Error while trying to fire event", getByLocator(), e);
  		}
  	}
docs: Fires a javascript event on a web element
  
  @param event
  the javascript code for the event