I am new to Selenium TestNG and I am not willing to use firefox browser, Instead, I want to use ChromeDriver. I am getting an error when I try to set it as the web driver.
Here's the code:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class TestNG123 {
System.setProperty("webdriver.chrome.driver","D:\\chromedriver");
WebDriver driver = new ChromeDriver();
String URL = "https://accounts.google.com";