-2

I have installed java JDK1.8.0_05. I am using selenium 2.50.0. I have entered below code:

username.sendKeys("Ashok");

and I got the error as below.

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files - The method sendKeys(CharSequence[]) from the type WebElement refers to the missing type CharSequence

Can anyone help me on this issue?

Jainish Kapadia
  • 2,603
  • 5
  • 18
  • 29
  • 2
    It will be great if you will provide your full tried code. – Jainish Kapadia Mar 24 '17 at 05:03
  • 1
    Upgrade your Selenium version to 3.0 or above – Kushal Bhalaik Mar 24 '17 at 05:10
  • Possible duplicate of [The type java.lang.CharSequence cannot be resolved in package declaration](http://stackoverflow.com/questions/24301986/the-type-java-lang-charsequence-cannot-be-resolved-in-package-declaration) – JeffC Mar 24 '17 at 17:04
  • It would be nice if you spent a few minutes googling error messages, etc. and trying to find an answer to your question before asking it here. I googled the error message and the first result contains your answer. – JeffC Mar 24 '17 at 17:04

1 Answers1

0

change your jre to 1.6 will be ok

Alex Bruce
  • 533
  • 2
  • 10
  • 23