Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am finding below error when i am trying to enter fields into login page using selenium web driver.

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

What I have tried:

I have tried below code.

driver.findElement(By.id("Email")).sendKeys(" YOUR USER NAME");
Posted
Comments
Richard MacCutchan 7-Aug-17 4:04am    
Look at the method definition; you cannot use a string where the method expects a character array.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900