I am trying to automate gmail login.
When I enter the text in username input box using sendKeys()
it is throwing an exception.
My code:
WebElement userName = driver.findElement(By.id("Email"));
userName.sendKeys("tutorial");
Exception:
Error:The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
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) at com.gmail.test.Gmaillogin.main(Gmaillogin.java:65)