{"id":15199823,"url":"https://github.com/simple-automation-testing/promod","last_synced_at":"2026-02-26T19:39:28.581Z","repository":{"id":57331686,"uuid":"395533185","full_name":"Simple-Automation-Testing/promod","owner":"Simple-Automation-Testing","description":"Library for browser manipulation ","archived":false,"fork":false,"pushed_at":"2025-01-18T07:59:26.000Z","size":1408,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-01T15:11:27.234Z","etag":null,"topics":["aqa","automated-testing","automation-selenium","js","nodejs","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simple-Automation-Testing.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-13T05:40:16.000Z","updated_at":"2025-01-18T07:59:27.000Z","dependencies_parsed_at":"2024-04-27T14:02:47.560Z","dependency_job_id":"878304ff-f39f-4bf3-8d0a-d5e93f2fb13b","html_url":"https://github.com/Simple-Automation-Testing/promod","commit_stats":{"total_commits":117,"total_committers":1,"mean_commits":117.0,"dds":0.0,"last_synced_commit":"25472c3625b03a0b9efd2f9f1df3feef314f057c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fpromod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fpromod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fpromod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fpromod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simple-Automation-Testing","download_url":"https://codeload.github.com/Simple-Automation-Testing/promod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238655001,"owners_count":19508535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aqa","automated-testing","automation-selenium","js","nodejs","testing"],"created_at":"2024-09-28T02:02:48.439Z","updated_at":"2026-02-26T19:39:28.561Z","avatar_url":"https://github.com/Simple-Automation-Testing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# promod\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/promod.png\" alt=\"promod\" width=\"200\"/\u003e\n\u003c/p\u003e\n\nBrowser automation library with a unified API over [Playwright](https://playwright.dev/) and [Selenium WebDriver](https://www.selenium.dev/documentation/webdriver/).\n\nPromod provides a **protractor-like** lazy element interface — elements are not resolved until an action is performed on them.\n\n## Installation\n\n```bash\nnpm install promod\n```\n\nPromod requires a browser engine as a peer dependency:\n\n```bash\n# For Playwright\nnpm install playwright\n\n# For Selenium WebDriver\nnpm install selenium-webdriver chromedriver\n```\n\n## Quick start\n\n### Playwright\n\n```js\nconst { chromium } = require('playwright');\nconst { playwrightWD } = require('promod');\nconst { browser, $, $$ } = playwrightWD;\n\nasync function main() {\n  const launched = await chromium.launch({ headless: false });\n  browser.setClient({ driver: launched });\n\n  await browser.get('https://example.com');\n\n  const heading = $('h1');\n  console.log(await heading.getText());\n\n  await browser.quitAll();\n}\n\nmain();\n```\n\n### Selenium WebDriver\n\n```js\nconst { Browser, Builder } = require('selenium-webdriver');\nrequire('chromedriver');\nconst { seleniumWD } = require('promod');\nconst { browser, $, $$ } = seleniumWD;\n\nasync function main() {\n  const driver = await new Builder().forBrowser(Browser.CHROME).build();\n  browser.setClient({\n    driver,\n    lauchNewInstance: () =\u003e new Builder().forBrowser(Browser.CHROME).build(),\n  });\n\n  await browser.get('https://example.com');\n\n  const heading = $('h1');\n  console.log(await heading.getText());\n\n  await browser.quit();\n}\n\nmain();\n```\n\n## ESM / CommonJS\n\nPromod ships dual builds. Bundlers and Node `import` will use ESM; `require()` will use CommonJS.\n\n```js\n// ESM\nimport { playwrightWD, seleniumWD } from 'promod';\n\n// CommonJS\nconst { playwrightWD, seleniumWD } = require('promod');\n```\n\n## Selector strategies\n\nAll examples work identically with both `playwrightWD` and `seleniumWD`.\n\n```js\n// CSS (default)\nconst el = $('.my-class #id a[href*=\"link\"]');\n\n// XPath\nconst el = $('xpath=.//div[@data-test=\"id\"]/span');\n\n// JavaScript function\nconst el = $(() =\u003e document.querySelector('div \u003e span'));\n\n// Custom selector (query + text filter)\nconst el = $({ query: 'button', text: 'Submit' });\nconst el = $({ query: 'button', rg: 'Sub.*' }); // regex filter\n```\n\n## API\n\n| Topic | Link |\n| --- | --- |\n| Engine setup | [docs/init.md](./docs/init.md) |\n| Browser (client) | [docs/client.md](./docs/client.md) |\n| Element (`$`) | [docs/element.md](./docs/element.md) |\n| Elements (`$$`) | [docs/elements.md](./docs/elements.md) |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-automation-testing%2Fpromod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-automation-testing%2Fpromod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-automation-testing%2Fpromod/lists"}