I get an error when i use sendKeys method.
my java code is below:
package com.selenium;
import org.openqa.selenium.*;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class WebDriverTest {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("
http://www.wikipedia.org");
driver.findElement(By.id("searchInput")).sendKeys("Selenium Software");
}
}
The error is
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
Kindly help resolving this issue..