下面是代码:
JavascriptExecutor jse = (JavascriptExecutor)driver;
WebElement blueray = driver.findElement(By.xpath("Xpath ID")]"));
jse.executeScript("scroll(0,250)", blueray);
以下是错误:
The method executeScript(String, Object[]) in the type JavascriptExecutor is not applicable for the arguments (String, WebElement)