如何查找Eclipse中是否安装了所有Jar文件? [英] How Do I Find Whether All Jar Files Installed In Eclipse Are Not?
本文介绍了如何查找Eclipse中是否安装了所有Jar文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://venu-pc/login.do");
driver.manage().window().maximize();
driver.findElement(By.id("Username")).sendKeys(" admin");
driver.findElement(By.id("Password")).sendKeys(" manager");
System.out.println(driver.getTitle());
driver.close();
当我写这段代码时
。我收到错误
WebElement类型中的方法sendKeys(CharSequence [])不适用于参数(String)
方法sendKeys(CharSequence [])in类型WebElement不适用于参数(String)
是什么意思
when i wrote this code . iam getting error that
The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)
what does it mean
推荐答案
您正在尝试发送字符串,但是文档 [ ^ ]显示CharSequence [ ^ ]。您需要将字符串转换为此类型。
You are trying to send a string, but the documentation[^] shows a CharSequence[^]. You need to convert your string to this type.
这篇关于如何查找Eclipse中是否安装了所有Jar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文