Skip to content

Commit

Permalink
chore: add POM doc content
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirAzhar committed Oct 11, 2024
1 parent 37131f7 commit fc4e76f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/POM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Page Object Model (POM)
This project uses the Page Object Model (POM) pattern to organize the UI interactions and test logic separately. Each page of the web application has a corresponding Java class in the pages/ package that contains the locators and actions related to that page.

BasePage: Contains common actions like navigation, clicks, and waits.

LoginPage, DashboardPage, CourseOverviewPage: These represent different pages of the application, each with methods to interact with the page elements.

BrowserFactory: This utility class manages browser instances using Playwright. It handles browser creation, setup, and teardown, supporting different browsers such as Chrome, Firefox, and WebKit. The factory abstracts the complexity of browser management, making it easy to initialize browser instances for testing.

PageFactory: A utility to dynamically instantiate page objects at runtime, reducing boilerplate code. It creates page objects using reflection, allowing smooth transitions between different pages during the test execution.

0 comments on commit fc4e76f

Please sign in to comment.