簡體   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