top of page

Page Object Repository Capture from an Existing UI

Writer: Ashwin Kondapalli
Ashwin Kondapalli
Oct 16
5 min read

Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: October 16, 2026

A QA lead inherits a customer portal that has been in production for four years. There is no page-object layer, a few hundred Playwright specs carry their own selectors, and the team wants to start generating reviewed automation from work items. The first question in planning is not which framework to use. It is where the locators for the existing UI will live, who owns them, and how anyone will know when they change.

Page Object Repository capture answers that question for an application that already exists. In LoopIQ, a user starts a capture session from Test Automation, opens the target page in Chrome, and uses the LoopIQ Page Object Capture extension to collect meaningful UI objects. The user reviews, renames, or removes objects before approving the upload. Each approved capture creates an immutable repository version that Playwright and Selenium generation can reuse.

What is a Page Object Repository?

A Page Object Repository is a versioned, named collection of UI objects captured from application pages. According to the LoopIQ test automation guide, an application or module can have multiple repositories, and each repository can contain multiple pages and immutable versions. Pages organize objects captured from individual routes or application screens.

The point is reuse with history. Generated tests reference objects from the repository instead of duplicating locators, and every change to those objects is recorded as a new version.

Why capture from the existing UI instead of writing locators by hand?

Hand-written locators in an older application tend to drift in three ways:

  • Duplication: the same button is located five different ways across specs.

  • No owner: nobody can say which definition is the current one.

  • No history: when a locator changes, the previous value is gone, and so is the reason it changed.

Capture from the running UI starts from what the page actually exposes: headings, buttons, links, form inputs, tabs, navigation, dialogs, and elements with accessible labels, roles, or stable test attributes. The reviewer then decides what is worth keeping.

How do you plan repositories before the first capture?

Decide the boundaries first, because they are hard to untangle later.

  1. One repository per product area or ownership boundary. The help docs suggest names such as Customer Portal, Admin Console, or Checkout and Billing.

  2. Pages inside the repository for routes or screens. Do not create a separate repository for every page unless those pages have separate ownership or lifecycle requirements.

  3. A controlled test environment. Capture pages from a non-production environment, and never intentionally capture production secrets or personal data.

  4. A named owner for each repository who reviews captures and version changes.

How does the capture workflow run, step by step?

  1. Sign in to LoopIQ in Chrome, open Test Management, then Test Automation.

  2. Select the application and optional module.

  3. Choose or create a Page Object Repository, then start the Page Object Capture session.

  4. Navigate to an approved page in the target application and open the LoopIQ extension, installed in the same Chrome profile as your LoopIQ session.

  5. Confirm the application, module, repository, and approved origin.

  6. Select Capture page objects.

  7. Review the list: rename unclear objects, remove low-value ones.

  8. Select Approve and send to LoopIQ.

The extension gets the organization, capture token, repository options, and approved origin from the active LoopIQ session, so users should not type organization IDs or tokens during normal use. Capture is always started and approved by a user.

What should reviewers keep, rename, or remove?

The review step is where a capture becomes a usable repository.

  • Keep controls and text you need for actions and assertions.

  • Rename objects by purpose, not appearance: Submit order, Customer email, Open approval dialog. Renaming changes the object name sent to LoopIQ; it does not alter the source application.

  • Remove decorative or unstable objects and duplicate wrappers.

  • Check hidden objects. Dialog and modal controls that only appear after a user action are marked hidden until interaction. The extension may inspect that hidden semantic content but does not run those interactions during capture. If a modal object is missing, open the modal and capture again.

The extension is designed not to capture password fields, HTML hidden inputs, current user-entered values, tokens, secrets, API keys, credentials, or tracking pixels. LoopIQ also applies backend validation, so an unsafe or unsupported capture can be rejected even after local review.

How this works in LoopIQ

Once a page is captured:

  • Versioning: each approved capture creates an immutable repository version. Saving another route to the same repository creates or updates that page and creates a new version.

  • Compare and restore: Version history shows added or removed objects and locator, attribute, state, and semantic changes. Restoring a known-good version creates another immutable version and records an audit event; it does not overwrite history.

  • Generation: in Generate test coverage, select the framework, then the Page Object Repository for Playwright or Selenium, optionally a cross-page journey, and one source work item. Generation creates a review-only package in draft status.

  • Approval: reviewers check each automation draft for stable page object references, specific assertions, and absence of secrets. Only approved automation assets can be submitted to governed execution.

  • Evidence: journey evidence for a run can include page URL, locator references, screenshots, and downloadable traces.

Karate API tests do not need browser page objects.

Capture plan excerpt (illustrative demo data)

  • Customer Portal: Page (route): Sign in · Objects kept: 6 · Hidden until interaction: 0 · Owner: QA – Portal · Status: Approved v1

  • Customer Portal: Page (route): Account overview · Objects kept: 14 · Hidden until interaction: 2 · Owner: QA – Portal · Status: Approved v2

  • Checkout and Billing: Page (route): Cart · Objects kept: 11 · Hidden until interaction: 1 · Owner: QA – Payments · Status: In review

  • Checkout and Billing: Page (route): Payment details · Objects kept: 9 · Hidden until interaction: 3 · Owner: QA – Payments · Status: Recapture modal

Demo data for illustration only; not customer results.

Checklist: first capture of an existing UI

  • Repository boundaries match product areas or ownership

  • Each repository has a named owner

  • Capture runs against a controlled test environment

  • Extension is in the same Chrome profile as the LoopIQ session

  • Every object is reviewed, and unclear names are replaced with business-readable ones

  • Decorative or unstable objects are removed before approval

  • Modals and conditional forms are opened and captured where needed

  • Version history is compared before any restore

  • Generated tests reference repository objects instead of new inline locators

FAQ: quick answers

What does the LoopIQ Page Object Capture extension capture? Meaningful UI and semantic content: page title, headings, buttons, links, form inputs, tabs, menus, navigation, status elements, dialogs and modal content, and elements with accessible labels, roles, or stable test attributes.

Does capture record passwords or user-entered values? It is designed not to. Password fields, hidden inputs, current field values, tokens, secrets, API keys, and credentials are excluded, and the backend validates uploads.

What happens when the UI changes? Capture the page again. The approved capture becomes a new immutable version, and you can compare locator and attribute changes against the previous one.

Which frameworks use captured page objects? Playwright and Selenium generation. Karate API tests do not need browser page objects.

Does a captured repository or a passing run authorize a release? No. It supports reviewed tests and evidence. People make the go/no-go decision under policy, and release certification is not regulatory certification.

Capture once, review every change

See a requirement become reviewed tests and execution evidence in LoopIQ, starting from page objects captured from your existing UI. Book a walkthrough: https://meet.brevo.com/ashwin-kondapalli.

General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.

Recent Posts

See All
Migrating Playwright Repos Without Orphan Locators

A green Playwright suite can still hide orphan locators: dangling imports, dead page-object members, and drifted inline selectors. Build a locator inventory, consolidate into owned page objects, and m

 
 
bottom of page