1
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");

    }

}
NarendraR
  • 7,577
  • 10
  • 44
  • 82
Prtiksha
  • 11
  • 1

1 Answers1

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
  • 1
    While 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