package firstPackage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FirstScript {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","E:\\Selenium\\webdriver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com");
}
}
Asked
Active
Viewed 141 times
1
-
1Where did you get the error ? In IDE editor ? or in console while running this code ? – NarendraR Jun 26 '20 at 10:09
1 Answers
0
There isn't enough information to answer your question but I'm guessing you didn't add the JARs to the project.
Check out how to do that:
For Eclipse
For IntelliJ

RushiSrinivas.K
- 171
- 2
- 11
-
1While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Donald Duck Jun 27 '20 at 20:13