[英]Selenium shows error "The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)"
[英]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類型。
有人可以幫忙解決這個問題嗎?
以下是我的代碼:
嘗試這種方式。
Project -> right click -> Build Path -> Configure build Path - Add External Jars -> (once added) Up
(應該在頂部) selenium-server-standalone
下逐個添加其他jar
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.