Selenium Java - Page Object Model
Analyze the following test class snippet:
What will be printed if the
public class LoginTest {
LoginPage loginPage = new LoginPage(driver);
@Test
public void testLogin() {
boolean success = loginPage.login("user", "invalidPass");
System.out.println(success ? "Login succeeded" : "Login failed");
}
}What will be printed if the
login method returns false?