繁体   English   中英

Selenium Webdriver错误“ WebElement类型的方法sendKeys(CharSequence…)引用缺少的CharSequence类型”

[英]Selenium Webdriver error “The method sendKeys(CharSequence…) from the type WebElement refers to the missing type CharSequence”

我在MyEclipse Enterprise工作台中将Java“ 1.8.0_131”与Selenium Webdriver 2.53.1一起使用。 我已经按照所有程序操作并添加了所有必需的jar,但是当我尝试使用“ sendKeys”功能时,它显示以下错误:

WebElement类型的sendKeys(CharSequence ...)方法引用丢失的CharSequence类型。

有人可以帮忙解决这个问题吗?

以下是我的代码:

尝试这种方式。

  1. 取出所有的罐子
  2. 下载selenium-server-standalone jar
  3. 添加到Eclipse-> Project -> right click -> Build Path -> Configure build Path - Add External Jars -> (once added) Up (应该在顶部)
  4. 像您一样运行一个简单的测试。
  5. selenium-server-standalone下逐个添加其他jar

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM