I encountered an issue stating "The method executeScript(String, Object[])
in the type JavascriptExecutor is not applicable for the arguments (String)
" and I need assistance to resolve it.
driver.findElement(By.id("twotabsearchtextbox")).sendKeys(new String[] {"Books"});
Thread.sleep(3000);
driver.findElement(By.className("nav-input")).click();
System.out.println("Books");
Thread.sleep(3000);
jse = (JavascriptExecutor)driver;
jse.executeScript("scroll(0, 100)");
Thread.sleep(3000);
driver.findElement(By.name("s-ref-checkbox-9141482031")).click();