finds.dev← search

// the find

naveenanimation20/PageObjectModel

★ 576 · HTML · updated Jun 2024

Page Object Model with - Selenium + Java + TestNG

A teaching example of the Page Object Model pattern using Selenium, Java, TestNG, and Maven, targeting a free CRM demo app. It exists solely as a learning reference — there is no production system being tested here. The 1,300 forks tell you this is course material, not a framework anyone is actually running in CI.

The POM structure is clean and correctly separates page classes from test classes, which is exactly what a newcomer needs to see. Extent Reports integration gives beginners a quick win on readable HTML output. The WebEventListener using WebDriverEventListener demonstrates the event-listener pattern that most tutorials skip. Two separate TestNG suite XMLs (full suite vs. sanity) show a real-world practice worth knowing about.

The `target/` directory and compiled `.class` files are checked into the repo — the `.gitignore` isn't doing its job, and this is a bad habit to teach. The README points at freecrmtest.com, a third-party demo site that can go down or change its UI at any time, breaking all tests without any notice. There's no parallelism, no cross-browser configuration, and no CI setup — so students learn POM in isolation from how it actually runs in a real pipeline. Last pushed June 2024 and there's no indication it's been updated for Selenium 4's native wait improvements or the deprecation of older WebDriver APIs.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →