title: Selenium shows error "The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)"
body: <p>While executing selenium script by JAVA, I am getting below error.</p>
  
  <blockquote>
    <p>Error : "The method sendKeys(CharSequence[]) in the type WebElement is
    not applicable for the arguments (String)"</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>package Pkg_09;
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.ie.InternetExplorerDriver;
  
  public class Practice {
  
      public static void main(String[] args) {
  
          WebDriver driver1;
  
          driver1.get("www.google.com");
          driver1.findElement(By.id("gs_htif0")).sendKeys("Sachin Tendulkar");
          driver1.findElement(By.id("aa")).sendKeys("xx");
          driver1.findElement(By.name("btnK")).click();
      }
  }
  </code></pre>
  
  <p>Kindly let me know if there are anything which I am missing out.</p>