0

Im beginner in selenium , installed properly with JDK 8 and silenum 2.52 ,getting this error repeatedly . Cnt go forward . Please help me out .

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

Java Problem

Snapshot

Tarit Ray
  • 944
  • 12
  • 24

1 Answers1

0

try

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

or

driver.findElement(By.id("lst-ib")).sendKeys("Cheese!");
Leon Barkan
  • 2,676
  • 2
  • 19
  • 43