1

I am getting exception while trying to implement sendKeys as "The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files". I am trying to type a number 300 in a textbox with id "min-value". This is a java code to run in selenium.

I have jre 8 installed on my system.

Below is the code which gives problem

driver.findElement(By.id("min-value")).sendKeys("300");

I have imported all the required Selenium webdriver packages. I am working on Eclipse 3.3 version

Can anyone please help.

user601236
  • 123
  • 4
  • 10

2 Answers2

0

JRE 1.7 supports the methods. This is working with 1.7

Just need to change the JAR to 1.7 in Project > Properties.

user601236
  • 123
  • 4
  • 10
0

You need to install JRE 1.7 which support that method.

you will check your installed JRE from following path in Eclipse

Menu-->Preferences-->java-->Installed JREs

and you can add new jars of JRE 1.7 from following path in Eclipse

Right click on Project-->Build Path-->Configure Build Path-->Java Build path-->Libraries-->Add jar files
iamsankalp89
  • 4,607
  • 2
  • 15
  • 36