Skip to main content
Glama

generate_page_object

Create Page Object Model classes for web automation testing. Generates code for Playwright or Selenium frameworks to structure test automation with reusable page elements.

Instructions

Generate a complete Page Object Model class for a webpage. Supports Playwright (TypeScript/JavaScript/Python) and Selenium (Java/Python/C#).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the webpage
classNameYesName for the Page Object class (e.g., 'LoginPage', 'CheckoutPage')
languageNoProgramming language: typescript, javascript, python (Playwright) OR java-selenium, python-selenium, csharp-selenium (Selenium)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/naveenanimation20/locatorlabs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server