I have the below code for selenium
public static void main(String[] args) {
File file = new File("C:\\path\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver();
driver.get("http://hedtq01vr.bcbsma.com:8080/tm/index.jsp?default");
driver.quit();
}
When i try to run it fails with the below error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver
Below are the jars on the build path:
- Selenium-java-2.42.2.jar
- selenium-server-standalone-2.33.0.jar
and IEDriverServer.exe on the C:\path folder
Why am i getting this error..The page here doesn't talk anything about the required libraries.
Any suggestions?
EDIT:
After adding the libraries from the selenium folder, I am getting the below error:
Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
Here is the complete error link