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

前端 未结 8 1116
北海茫月
北海茫月 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:21

    I faced the same problem during using eclipse Kepler.

    Problem domain:
    My java compiler compliance level was 1.4

    Solution:
    so using build path >> configure build path>> java compiler>> changed the compiler compliance level to 1.7 or higher

    This could solve the problem.

提交回复
热议问题