Error - Not able to launch a browser | Selenium Forum
M
Posted on 04/10/2016
here is my code :-
package Practice;

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

public class LaunchBrowser {

public static void main(String[] args) throws ClassNotFoundException {

Class.forName("LaunchBrowser");
// Telling the system where to find the Chrome driver

WebDriver driver = new InternetExplorerDriver();

driver.get("http://www.google.co.in");
}

}
Error is : -

Exception in thread "main" java.lang.NoClassDefFoundError

M
Replied on 05/10/2016

I think you need to initialize Internet Exlprorer driver

System.setProperty("webdriver.ie.driver", "Path for IE driver server");


M
Replied on 05/10/2016

[quote:37fdnsqf]Class.forName("LaunchBrowser");
// Telling the system where to find the Chrome driver
[/quote:37fdnsqf]

what is this? what are you trying to do?