Java silenium中的senkeys()在添加了所有构建路径并具有jdk 8时出错

Java silenium中的senkeys()在添加了所有构建路径并具有jdk 8时出错,java,selenium,sendkeys,Java,Selenium,Sendkeys,我是selenium的初学者,与JDK 8和silenum 2.52一起正确安装,反复出现此错误。继续。请帮帮我 The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) Java问题 试试看 driver.findElement(By.name("q")).sendKeys("Cheese!"); 或 写.sendkeys()时不工作,这是

我是selenium的初学者,与JDK 8和silenum 2.52一起正确安装,反复出现此错误。继续。请帮帮我

The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) 
Java问题

试试看

driver.findElement(By.name("q")).sendKeys("Cheese!");


写.sendkeys()时不工作,这是一个给出错误。要解决这个问题,我使用了JRE 7,之前我使用的是JRE 8。
driver.findElement(By.id("lst-ib")).sendKeys("Cheese!");