Code trials:
@BeforeMethod
public void setUp() {
System.setProperty("webdriver.chrome.driver", "C:/Users/hp/Downloads/chromedriver_win32/chromedriver.exe");
driver = new ChromeDriver();
//driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get("https://www.google.com");
}
@Test
public void verifyTitle() {
System.out.println("demo");
String title =driver.getTitle();
System.out.println("the page title is :"+title);
Assert.assertEquals(title,"Google");
}
@AfterMethod
public void tearDown() {
driver.quit();
}
This is the code I am trying to run using Selenium Testng but showing error as Test case not found