a simple script that launches YouTube
package org.example;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Main {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new ChromeDriver();
System.setProperty("webdriver.chrome.driver", "C:\\Users\\r.charan\\Documents\\chrome-win64\\chrome.exe");
driver.get("https://youtube.com");
Thread.sleep(3000);
driver.quit();
}
}