{"repo":"ueokande/playwright-webextext","free":true,"listed":false,"github":"https://github.com/ueokande/playwright-webextext","clone":"git clone https://github.com/ueokande/playwright-webextext.git","description":"Playwright extensions for tesiting WebExtensions","language":"TypeScript","stars":32,"topics":["playwright","webextensions"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"playwright-webextext This extension library enables loading firefox add-ons and chromium extensions from the local filesystem for [playwright][]. Install Install by your package manager API withExtension() The method provides a custom browser that loads temporary extensions from the local filesystem. Usage createFixture() The method provides custom fixtures that enable browsers to load add-ons and extensions. Usage Manifest v3 support The playwright-webextext does not fully support manifest v3 on Firefox. Firefox asks users to allow loading content scripts since Manifest v3. Basically, the user should allow the permission on the about:addon page manually. The playwright-webextext overrides the permission of the add-on to allow loading content scripts before launching the browser. This override works when the add-on has the browser specific settings.gecko.id property in the manifest.json: and it's necessary to launch with persistent context, using launchPersistentContext() . [firefox gecko properties]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser specific settings#firefox gecko properties How does it work Chromium The playwright introduces a way to install chrome extensions in the document. Chromium supports installing extensions via [command-line options][chrome-launch-switches]. The playwright-webextext launches a chromium browser with command-line options with extension paths. See the following document for more details: - Chr","default_branch":null,"files":null,"tree":[],"storefront":"/r/ueokande","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ueokande/playwright-webextext/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}