Index
All Classes and Interfaces|All Packages
A
- addProductToCart() - Method in class pages.HomePage
-
Method to add a product to the cart.
B
- base - package base
C
- checkoutCart(boolean) - Method in class pages.ShoppingCartPage
-
Method to checkout the cart with the product items
- checkProductInCart(List<String>) - Method in class pages.ShoppingCartPage
-
Method to verify the product added to cart is available in cart
- checkProductSortedByPrice() - Method in class pages.ProductPage
-
Method to sort the products by price from UI and verify the sorting from code Using playwright selectOption to select drop down.
- createPage() - Method in class base.PlaywrightFactory
-
Method to create a new playwright
Page
for the browser
D
- doLogin(String, String) - Method in class pages.LoginPage
-
Method to Login using the username and password
E
- extentLog(ExtentTest, Status, String) - Static method in class utils.ExtentReporter
-
Method to add the log the step to extent report
- extentLogWithScreenshot(ExtentTest, Status, String, String) - Static method in class utils.ExtentReporter
-
Method to add the log step with the screenshot to the extent report
- ExtentReporter - Class in utils
-
Extent Report class for the Report generation
G
- getExtentReporter(TestProperties) - Static method in class utils.ExtentReporter
-
Method to configure and get the ExtentReporter instance
- getHomePageTitle() - Method in class pages.HomePage
-
Method to retrieve the Home Page title
- getLoginPageTitle() - Method in class pages.LoginPage
-
Method to get Login page title
- getProperty(String) - Method in class utils.TestProperties
-
Utility method to get the property value after trim
H
- HomePage - Class in pages
-
Page Object Class for Home Page
- HomePage(Page, ExtentTest) - Constructor for class pages.HomePage
-
Constructor to initialize the page objects with the
Page
instance andExtentTest
instance
L
- LoginPage - Class in pages
-
Page Object Class for Login Page
- LoginPage(Page, ExtentTest) - Constructor for class pages.LoginPage
-
Constructor to initialize the page objects with the
Page
instance andExtentTest
instance
N
- navigateToLoginPage() - Method in class pages.HomePage
-
Method to navigate from Homepage to Login page
- navigateToProductsFromMenu(String) - Method in class pages.HomePage
-
Method to navigate to specific products menu from Homepage
- navigateToShoppingCartPage() - Method in class pages.HomePage
-
Method to navigate from Homepage to Shopping cart page
P
- pages - package pages
- PlaywrightFactory - Class in base
-
The class PlaywrightFactory provides a constructor which starts the playwright server.
- PlaywrightFactory(TestProperties) - Constructor for class base.PlaywrightFactory
-
Constructor to initialize the test properties and playwright server
- ProductPage - Class in pages
-
Page Object Class for Product Page
- ProductPage(Page, ExtentTest) - Constructor for class pages.ProductPage
S
- saveSessionState(Page, String) - Static method in class base.PlaywrightFactory
-
Method to save the session state from the
BrowserContext
in a file provided in 'sessionState' property - searchProduct(String) - Method in class pages.HomePage
-
Method to search item in the portal for productName
- setProperty(String, String) - Method in class utils.TestProperties
-
Method to set the property with the value
- shareProductToSocialPlatform(String, int) - Method in class pages.ProductPage
-
Method to share the product to the social platform and verify the share count is incremented
- ShoppingCartPage - Class in pages
-
Page Object Class for shopping cart Page
- ShoppingCartPage(Page, ExtentTest) - Constructor for class pages.ShoppingCartPage
-
Constructor to initialize the page objects with the
Page
instance andExtentTest
instance
T
- takeScreenshot(Page) - Static method in class base.PlaywrightFactory
-
Method to take screenshot of the
Page
It saves the screenshots with file name of ${currentTimeMillis}.png - TestProperties - Class in utils
-
Class to load, get, set and update the test properties
- TestProperties() - Constructor for class utils.TestProperties
-
Constructor - Load the config properties for Test
U
- updateTestProperties() - Method in class utils.TestProperties
-
Method to update the Test properties with Run time System Property
- utils - package utils
V
- viewProduct(String) - Method in class pages.ProductPage
-
Method to click and view the product item from product list
All Classes and Interfaces|All Packages