Error when using sendKeys() with Selenium WebDriver Java.lang.CharSequence cannot be resolved

前端 未结 8 1123
北海茫月
北海茫月 2020-12-19 15:46

I have imported the following and still get an error when using sendKeys();

import org.openqa.selenium.*;
import org.openqa.selenium.firefox.*;
         


        
8条回答
  •  死守一世寂寞
    2020-12-19 16:37

    It needs to upgrade the Compiler Compliance. For Eclipse: Follow the steps below:

    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 or higher
    4. Lastly Click on Apply and OK

提交回复
热议问题