The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String) | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos

Selenium Training Forum

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

L
lakshmi Post on 09/10/2019

L
lakshmi Reply on 10/10/2019

On sendkeys, I am not able to pass the string as parameter

This is on module 12 and trying using the id type to find the elements and send the keys.

Please help.

driver.findElement(By.id("userid")).sendKeys("uytuy");

I am seeing below error:

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

 

 

S

Instructor

Support Team Reply on 10/10/2019

Which version of JDK are you using?

Make sure that you are using JDK 8 only.

L
lakshmi Reply on 10/10/2019

Thanks. It worked when I updated the compiler compliance level.