我有以下代码,但未运行
导入org.openqa.selenium.chrome.ChromeDriver;
导入io.github.bonigarcia.wdm.WebDriverManager;
公共类Test1_GoogleSearch {
public static void main(String[] args) {
System.out.println("first test");
}
public static void googlesearch() {
WebDriverManager.chromedriver().setup();
ChromeDriver driver = new ChromeDriver();
driver.get("https://www.google.co.in/");
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.findElement(By.name("q")).sendKeys("Automation step by step");
driver.findElement(By.name("btnK")).click();
driver.close();
System.out.println("Test Completed Succesfully");
}
}