Package pages

Class LoginPage

java.lang.Object
pages.LoginPage

public class LoginPage extends Object
Page Object Class for Login Page
Author:
Nayeem John
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoginPage(com.microsoft.playwright.Page page, com.aventstack.extentreports.ExtentTest extentTest)
    Constructor to initialize the page objects with the Page instance and ExtentTest instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    doLogin(String appUserName, String appPassword)
    Method to Login using the username and password
    Method to get Login page title

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoginPage

      public LoginPage(com.microsoft.playwright.Page page, com.aventstack.extentreports.ExtentTest extentTest)
      Constructor to initialize the page objects with the Page instance and ExtentTest instance
      Parameters:
      page - - Page
      extentTest - - ExtentTest
  • Method Details

    • getLoginPageTitle

      public String getLoginPageTitle()
      Method to get Login page title
      Returns:
      String - Returns page title
    • doLogin

      public boolean doLogin(String appUserName, String appPassword)
      Method to Login using the username and password
      Parameters:
      appUserName - - String username for the App
      appPassword - - String username for the password
      Returns:
      boolean - Returns true after successful login else false