{"_id":"@alexrah/playwright-utils","_rev":"11-23ec0717acc463f89bdcd44a78aa06f7","name":"@alexrah/playwright-utils","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@alexrah/playwright-utils","version":"1.0.0","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.0.0","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"d6c48065874f23ff500976c9110d11e523bb60aa","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.0.0.tgz","fileCount":9,"integrity":"sha512-0NfM4JS1iIeTQEidIDllGhjhbF1npl5FDA4enYZSaLy+j31+7I0O4qsLIHPHto6ELGo2p6rd6xX62gsBaS5u1g==","signatures":[{"sig":"MEQCICKvr4gT1Zz+sVxzuyZ3xdL8gt24ptgz0hAccs3kK0jOAiAq6hXhMzkivVVq68Gbh0jLgprfZ5VfIcum0c/NzAhvpA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13344},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"369c9534ee931ebf111b49ec630263d3e2068a8f","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0","@playwright/test":"^1.44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.0.0_1715593613827_0.7815250158571339","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@alexrah/playwright-utils","version":"1.1.0","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.1.0","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"b2018dd6d2d6c68ad9f6603b7e8ba9c887c9ff04","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.1.0.tgz","fileCount":10,"integrity":"sha512-VDLgazUbGwLwPOeRbpP/8kSL/DXddVArmAsqqoxnkDC0TSYm6DghEdWl2F/YRDm/h75b79HJKVLjbzqd5EqYYw==","signatures":[{"sig":"MEQCIGPpx6HgRAXDIDMDnp8c6sB4Sx36HYk4zszLzLkr0gYEAiAGhrDCBWudZ1E30u2A8dD8IhUe/P31PweyVJxjEdHPQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13421},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"ddb79b4b9d41f12a623cae136bee60429a9f2008","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0","@playwright/test":"^1.44.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.1.0_1715595058110_0.9862585929098966","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@alexrah/playwright-utils","version":"1.2.0","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.2.0","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"20b35de767371de2f2a3379346d35b24775cf923","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.2.0.tgz","fileCount":12,"integrity":"sha512-Q/Gv3W6n3HkdBYmedeVchd1Kmc7AfETSAk1qYyNxra3FXrW2mo2aZ2Plj1OLjHp35J3G0KRElBVX9DEEf5aVpQ==","signatures":[{"sig":"MEUCIH++UqKY7Iw6Xne74CmDyMu/5xFzZrYh27XrZEjW5II5AiEA4SQdBp4RVN5lFhkBRjDqQX5XTJf/doYaYZakskMJSLQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21203},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"e0fa1eba1227ac95a733cc8e13b23c82fe035bb2","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0","@playwright/test":"^1.45.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.2.0_1721680153107_0.02763374664791418","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@alexrah/playwright-utils","version":"1.2.1","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.2.1","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"a4acbd228b859d9711bdea7c52e79bdf985ab4a5","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.2.1.tgz","fileCount":12,"integrity":"sha512-ijb/hrSKvZapmDcY/TpmsilWzv5qxSfUUvWiUHT4UaAsM1IzGVcXeuXF7ysvZoDCOGka6uYeh9qF67DOe+1ddg==","signatures":[{"sig":"MEYCIQC2+jS7dvkwPcFgbG0tgNnSYSFWUw4stfeMXJVO4glg5QIhAOPqwYZS0PW2VMYI5ekLan4NJTMkpIAQwUhEuS5wr+PG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21303},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"cfd53e73923ee55d14defc089f964b8ed1256f47","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0","@playwright/test":"^1.45.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.2.1_1721681800438_0.6391582009865082","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"@alexrah/playwright-utils","version":"1.2.2","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.2.2","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"82fb33476fb77de031d12e11b6526ffc1e4368f4","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.2.2.tgz","fileCount":12,"integrity":"sha512-9W1kYWYpGh0kSUbey1QZV35nVdoCs7nwwyakpMhNi8PAVBWbPlaoYmzWoiWIEa02XoVnXsm5DpkcBAb/Eln6UA==","signatures":[{"sig":"MEUCIQC4b5AZc9TRzHMGvLcaor6Q8C1833oJZEeL9OcVKmMlQwIgevm+RCJ2fzMqK8Jvw6zzgiIhxpYj/nR4iU5jAIXKNEo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21328},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"84126d58c4487ffbe741b0f17671bdb3f82c8cf1","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"peerDependencies":{"@playwright/test":"^1.x"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.2.2_1721682917892_0.7014898740125615","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@alexrah/playwright-utils","version":"1.3.1","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.3.1","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"e8e9134df7606714d0168b54fbbef8123ba016e8","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.3.1.tgz","fileCount":12,"integrity":"sha512-iepYiJsv+fVkfcHVtOtDhKZ+cyZOGU537HbERNwcMYcn5bD1QkMipEtW2RTMBCyS0kISLCea0MvvHZz+XF4zVA==","signatures":[{"sig":"MEUCIQCAURCmOJ0LwUwcNpxuPB6oW7r8ByVYLXDJMy5J4RhrxwIgMsmvxgoKQRDyvURrRoT7UAZqQivlrKmMlIG/4rpYgVA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21913},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"4e935e24fb4ee39a54c4a443c6612daf666726d9","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"peerDependencies":{"@playwright/test":"^1.x"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.3.1_1721776116507_0.842869795109392","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@alexrah/playwright-utils","version":"1.3.2","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.3.2","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"24710a1e8807f2d291234bf3a0a0b07db40e911d","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.3.2.tgz","fileCount":12,"integrity":"sha512-Kaa7h6/f6ZSrpnBPkXGyNjP5fZWSvmSxA9L43dyB6k9cJB/ArPRsEHg8eqTD/BBgIv4rQsFqq6cdlyGwCNcRfQ==","signatures":[{"sig":"MEQCIFB+YAjwF5/XM3jC03eYyvFQJOdPr5XiS/80+pdntS4aAiBE7PWmzSzknA91UAaOWLJNAnXFrO19/crVimS5qlYrEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22217},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"8b05b5bbfa6f343848269ac2bed1ab6a5fb64f03","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"@alexrah/logger":"^5.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"peerDependencies":{"@playwright/test":"^1.x"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.3.2_1721776460257_0.33564283251685656","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"@alexrah/playwright-utils","version":"1.3.3","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","_id":"@alexrah/playwright-utils@1.3.3","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"dist":{"shasum":"912aa28597cd2715051480bee3a8d456ccd8e2c7","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-1.3.3.tgz","fileCount":12,"integrity":"sha512-65vxoQIWJNxOEOth3qaTpdaP1yiOHkPpdyQfDg6So7n2I/ExZ8O0Am4CT36sYO7lAdvw7o8/yc9nAaekX8c/PQ==","signatures":[{"sig":"MEQCIGlM2lcIilgtJUWIU0os9gEFBFYddI3I3a6OxT5gRyJuAiARiqDVQH1vcW8PSmbWS95MCFsEajDdaCxWuUG05nfaYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22242},"main":"package/index.js","types":"./package/index.d.ts","gitHead":"20c5b26ca27df2b18f40923e8883d952ca2e120b","scripts":{"package":"rm -fr package/* && tsc"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"_npmVersion":"10.2.4","description":"A set of utilities to ease writing Playwright e2e tests","directories":{},"_nodeVersion":"20.11.1","dependencies":{"dotenv":"^16.4.5","@alexrah/logger":"^5.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"peerDependencies":{"@playwright/test":"^1.x"},"_npmOperationalInternal":{"tmp":"tmp/playwright-utils_1.3.3_1722876071161_0.2745478961344252","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@alexrah/playwright-utils","version":"2.0.0","description":"A set of utilities to ease writing Playwright e2e tests","type":"module","keywords":["playwright","e2e"],"author":{"name":"Alessandro Stoppato"},"license":"ISC","devDependencies":{"@alexrah/logger":"^5.1.0","copyfiles":"^2.4.1","dotenv":"^16.4.5","eslint":"^9.29.0","rimraf":"^6.0.1","typescript":"^5.4.5","@playwright/test":"^1.x"},"peerDependencies":{"@alexrah/logger":"^5.1.0","@playwright/test":"^1.x","dotenv":"^16.4.5"},"repository":{"type":"git","url":"git+https://github.com/alexrah/playwright-utils.git"},"exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"pnpm copyfiles && tsc","copyfiles":"copyfiles -u 1 \"src/**/*.d.ts\" dist/","typecheck":"tsc --noEmit","clean":"rimraf -g {dist/**/*,*.tsbuildinfo}","lint":"eslint .","lint:fix":"eslint . --fix"},"_id":"@alexrah/playwright-utils@2.0.0","bugs":{"url":"https://github.com/alexrah/playwright-utils/issues"},"homepage":"https://github.com/alexrah/playwright-utils#readme","_integrity":"sha512-fT/uEYI1TKZdirvifp2Ruu8WFLrAQ13OfpxSk4C+bV032GZFljJVPtvk7K1dqZN79Wz8zm+ZkXRgYRST7iItvg==","_resolved":"/private/var/folders/35/74_nd8rn2rvcym54q683pjkr0000gn/T/e74f8588098859818087108137d6e397/alexrah-playwright-utils-2.0.0.tgz","_from":"file:alexrah-playwright-utils-2.0.0.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-fT/uEYI1TKZdirvifp2Ruu8WFLrAQ13OfpxSk4C+bV032GZFljJVPtvk7K1dqZN79Wz8zm+ZkXRgYRST7iItvg==","shasum":"998925a9345c167660daafc9cc2959c31c927fe1","tarball":"https://registry.npmjs.org/@alexrah/playwright-utils/-/playwright-utils-2.0.0.tgz","fileCount":23,"unpackedSize":14797,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1/x5bm4ac4D77E5uuK3T3g+SlvdUZKU+6qpF6gdEcuwIhALQ4pzaCBE+lO5JbxbgP98CnDNbXNYLVm9+Se8zZvjGa"}]},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com","actor":{"name":"alexrah","email":"alexrah@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/playwright-utils_2.0.0_1750181397626_0.5972136522164124"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-13T09:46:53.734Z","modified":"2025-06-17T17:29:58.011Z","1.0.0":"2024-05-13T09:46:54.014Z","1.1.0":"2024-05-13T10:10:58.251Z","1.2.0":"2024-07-22T20:29:13.257Z","1.2.1":"2024-07-22T20:56:40.620Z","1.2.2":"2024-07-22T21:15:18.053Z","1.3.0":"2024-07-23T22:57:05.446Z","1.3.1":"2024-07-23T23:08:36.703Z","1.3.2":"2024-07-23T23:14:20.406Z","1.3.3":"2024-08-05T16:41:11.299Z","2.0.0":"2025-06-17T17:29:57.842Z"},"author":{"name":"Alessandro Stoppato"},"license":"ISC","keywords":["playwright","e2e"],"description":"A set of utilities to ease writing Playwright e2e tests","maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"readme":"## Playwright utilities\nAll utilities listed here are meant to be used inside a playwright's `test()` function.\n\n\n### cmpBypass\nclicks \"Accept\" on InMobi (formerly Quantcast) CMP overlay\n\n```typescript\n// inside a playwright test()\nawait cmpBypass(page);\n```\n\n### contentIsVisible\ncheck if passed selector match any visible element\n```typescript\n// inside a playwright test()\nawait contentIsVisible(testUrl.existentContentSelectors,page)\n```\n\n### contentExists\ncheck if passed selector match any existing element\n\n```typescript\n// inside a playwright test()\nawait contentExists(testUrl.existentContentSelectors,page)\n```\n\n### contentNotExist\ncheck if passed selector match any not existing element\n\n```typescript\n// inside a playwright test()\nawait contentNotExist(testUrl.notExistentContentSelectors,page);\n```\n\n### wpSessionLoginStorage\n- login to a wordpress backend with creds provided in .env file USERNAME & PASSWORD\n- save authenticated session in *.json file to allow reuse in multiple tests\n- requires option `use.baseURL` to be set in `playwright.config.ts` to correctly open /wp-login.php\n```typescript\ntype tWpSessionLoginStorageProps = {\n  browser: Browser,\n  absPathToStorageFile: string,\n  checkIfSuccessfull?: boolean\n}\n\nawait wpSessionLoginStorage({browser,absPathToStorageFile:'/path/to/stored/creds.json', checkIfSuccessfull:false})\n```","readmeFilename":"README.md","homepage":"https://github.com/alexrah/playwright-utils#readme","repository":{"type":"git","url":"git+https://github.com/alexrah/playwright-utils.git"},"bugs":{"url":"https://github.com/alexrah/playwright-utils/issues"}}