Selenium-java-3.0.0-beta2 jar文件在eclipse中不起作用

时间:2016-08-11 07:33:01

标签: eclipse selenium

我是selenium的新手,我试图自动化一个简单的任务,但是构建路径选项在eclipse中不起作用。我在这里附上了一些文件。请帮我运行此代码。

以下是代码:

package seleniumTutorial;

public class SeleniumGoogleMain {

public static void main(String[] args) {
    WebDriver driver = new FirefoxDriver();
    driver.get("https://www.google.co.in/");
    driver.findElement(By.linkText("Gmail")).click();
    driver.findElement(By.id("Email")).sendKeys("jssjohny");
    driver.findElement(By.name("signIn")).click();
}

}

以下是selenium的下载列表:

https

这些是我已经包含的jar文件,但它仍然没有工作:

https

提前致谢。

0 个答案:

没有答案