Java is throwing the following error while working with selenium
the method sendkeys(charsequence ) in the type webelement is not applicable for the arguments
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:
- Right click on your java project and select Build Path -> Click on
Configure Build Path... - In project properties window, Click/select Java Compiler at the left
panel - At the right panel, change the Compiler compliance level from 1.4 to 1.7
(Select which is higher version in your eclipse) - Lastly Click on Apply and OK
Now check your code. it will never show the same error.
No comments:
Post a Comment