Skip to content

Add Playwright Java oPack with OpenAF wrappers and add Maven dependency#1669

Draft
nmaguiar wants to merge 1 commit intomasterfrom
codex/create-openaf-playwright-wrapper
Draft

Add Playwright Java oPack with OpenAF wrappers and add Maven dependency#1669
nmaguiar wants to merge 1 commit intomasterfrom
codex/create-openaf-playwright-wrapper

Conversation

@nmaguiar
Copy link
Collaborator

@nmaguiar nmaguiar commented Mar 14, 2026

Motivation

  • Provide a reusable OpenAF oPack that exposes Microsoft Playwright for Java to perform browser automation (navigation, screenshots, PDFs, script execution).
  • Offer convenient integration points for OpenAF tooling via oafp input/output handlers and oJob wrappers to simplify common tasks.
  • Ensure the project can fetch Playwright artifacts via Maven by declaring the dependency in the build pom.xml and including .maven.yaml metadata.

Description

  • Added package metadata and packaging files: playwright/.package.yaml and playwright/.maven.yaml which declare the opack details and Maven coordinates (com.microsoft.playwright:playwright).
  • Added documentation in playwright/README.md explaining install instructions, usage examples, oafp examples, and notes about browser binary downloads.
  • Implemented the JavaScript wrapper playwright/playwright.js that creates and manages a Playwright instance and exposes run which supports url, engine, headless, timeout, waitForSelector, screenshotPath, pdfPath, and script execution, and handles cleanup of Playwright resources.
  • Added OpenAF integration helpers playwright/oafp_playwright.js and job wrappers playwright/oJobPlaywright.yaml to provide oafp input/output formats and ojob shortcuts for page info and screenshots.
  • Updated project pom.xml to include the Maven dependency com.microsoft.playwright:playwright:1.56.0 so the Playwright Java library can be resolved and loaded.

Testing

  • No automated tests were executed for this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant