{"id":13602422,"url":"https://github.com/aheadintime/playwright-firefox-addons","last_synced_at":"2025-04-11T08:32:35.057Z","repository":{"id":181460888,"uuid":"585238028","full_name":"aheadintime/playwright-firefox-addons","owner":"aheadintime","description":"use firefox addons with playwright automation","archived":false,"fork":false,"pushed_at":"2023-01-05T06:12:09.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-07T05:39:19.487Z","etag":null,"topics":["automation","browser-automation","firefox","geckordp","playwright","playwright-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aheadintime.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}},"created_at":"2023-01-04T17:01:34.000Z","updated_at":"2024-09-16T17:03:31.000Z","dependencies_parsed_at":"2023-07-15T18:06:03.182Z","dependency_job_id":null,"html_url":"https://github.com/aheadintime/playwright-firefox-addons","commit_stats":null,"previous_names":["aheadintime/playwright-firefox-addons"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheadintime%2Fplaywright-firefox-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheadintime%2Fplaywright-firefox-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheadintime%2Fplaywright-firefox-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheadintime%2Fplaywright-firefox-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aheadintime","download_url":"https://codeload.github.com/aheadintime/playwright-firefox-addons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361634,"owners_count":21090950,"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":["automation","browser-automation","firefox","geckordp","playwright","playwright-python"],"created_at":"2024-08-01T18:01:22.773Z","updated_at":"2025-04-11T08:32:30.047Z","avatar_url":"https://github.com/aheadintime.png","language":"Python","funding_links":[],"categories":["automation"],"sub_categories":[],"readme":"# Use firefox addons inside playwright \n\n## Tools needed\n* Playwright (https://playwright.dev)\n* Python (https://www.python.org)\n* geckordp (https://jpramosi.github.io/geckordp/)\n\n## How to do\n\nUse **Playwright** to create a firefox browser instance. Make sure to specify \"--start-debugger-server\" to allow **geckordp** to connect.\n\n```python\nbrowser = playwright.firefox.launch(headless=False, args=[\"--start-debugger-server\", str(debug_port)])\n```\n\n\nUse **geckordp** *RDPClient* to connect to launched browser instance\n\n```python\nclient = RDPClient(60)\nclient.connect(\"localhost\", debug_port)\n```\n\nGet *AddonsActor* from *RootActor* from connected *RDPClient*\n\n```python\nroot = RootActor(client)\nroot_actor_ids = root.get_root()\n\naddon_actor_id = root_actor_ids[\"addonsActor\"]\n\naddon_actor = AddonsActor(client, addon_actor_id)\n```\n\nUse *install_temporary_addon* to perform xpi addon installation\n\n```python\nresponse = addon_actor.install_temporary_addon(addon_path)\naddon_id = response.get(\"id\", None)\n```\n\nIf *addon_id* is not *None* addon was installed succesfully\n\n```python\ninstalled = not (addon_id is None)\n```\n\n**Have fun!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faheadintime%2Fplaywright-firefox-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faheadintime%2Fplaywright-firefox-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faheadintime%2Fplaywright-firefox-addons/lists"}