Selenium Java - Page Object Model
What is wrong with this test class snippet?
public class DashboardTest {
DashboardPage dashboardPage = new DashboardPage(driver);
@Test
public void testLoadDashboard() {
dashboardPage.load();
}
@AfterMethod
public void tearDown() {
driver.quit();
}
}