Saturday, 16 May 2015

Faced the following problem for send keys in selenium webDriver in Java

Java is throwing the following error while working with selenium
the method sendkeys(charsequence ) in the type webelement is not applicable for the arguments

It has a simple solution. Change your compiler compliance level from 1.4 to 1.7.
Follow these steps in your eclipse:
  1. Right click on your java project and select Build Path -> Click on
    Configure Build Path...
  2. In project properties window, Click/select Java Compiler at the left
    panel
  3. At the right panel, change the Compiler compliance level from 1.4 to 1.7
    (Select which is higher version in your eclipse)
  4. Lastly Click on Apply and OK
Now check your code. it will never show the same error.


No comments:

Post a Comment