Package pages
Class LoginPage
java.lang.Object
pages.LoginPage
Page Object Class for Login Page
- Author:
- Nayeem John
-
Constructor Summary
ConstructorsConstructorDescriptionLoginPage(com.microsoft.playwright.Page page, com.aventstack.extentreports.ExtentTest extentTest) Constructor to initialize the page objects with thePageinstance andExtentTestinstance -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod to Login using the username and passwordMethod to get Login page title
-
Constructor Details
-
LoginPage
public LoginPage(com.microsoft.playwright.Page page, com.aventstack.extentreports.ExtentTest extentTest) Constructor to initialize the page objects with thePageinstance andExtentTestinstance- Parameters:
page- -PageextentTest- -ExtentTest
-
-
Method Details
-
getLoginPageTitle
Method to get Login page title- Returns:
- String - Returns page title
-
doLogin
Method to Login using the username and password
-