getPage().evaluateJavascript("$('#firstname').focus();");
Boolean jqueryInjected = (Boolean) getPage().evaluateJavascript("return (typeof jQuery === 'function')");
assertThat(jqueryInjected, is(true));
driver.quit();
}
@Test
public void should_be_able_to_use_the_javascript_executor_with_parameters() {
getPage().evaluateJavascript("$('#firstname').focus();", "#firstname");