Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium 在IE上使用ant运行JUnit脚本时出错_Selenium_Ant_Junit_Selenium Webdriver - Fatal编程技术网

Selenium 在IE上使用ant运行JUnit脚本时出错

Selenium 在IE上使用ant运行JUnit脚本时出错,selenium,ant,junit,selenium-webdriver,Selenium,Ant,Junit,Selenium Webdriver,我正在尝试使用JUnit和Ant在IE上运行脚本。这些脚本使用Firefox成功运行和编译。当我使用Ant编译时,我得到以下错误: error: package org.openqa.selenium.ie does not exist [javac] import org.openqa.selenium.ie.InternetExplorerDriver; 下面是我使用的代码 包com.deloitte.itss.test.demo import org.junit.Test; import

我正在尝试使用JUnit和Ant在IE上运行脚本。这些脚本使用Firefox成功运行和编译。当我使用Ant编译时,我得到以下错误:

error: package org.openqa.selenium.ie does not exist
[javac] import org.openqa.selenium.ie.InternetExplorerDriver;
下面是我使用的代码 包com.deloitte.itss.test.demo

import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class TestAnnotations {

@Test
public void testLogin(){
    System.out.println("Testing Login");

System.setProperty("webdriver.ie.driver", "C:\\Users\\sqadri   \\IEDriverServer.exe");
    WebDriver wd = new InternetExplorerDriver();

}
}
我已准备好所有jar文件,并将“C:\IEDriverServer.exe”添加到PATH变量中


有人能帮我解决这个问题吗?我在谷歌上搜索了解决方案,在那里我发现我应该将驱动程序路径添加到路径中。

你将驱动程序的Jar存档添加到类路径中了吗?嗨,Stefan,没有,你能告诉我在哪里可以找到驱动程序的Jar存档吗?谢谢