setup-browser-cookies

Import selected Chromium cookies into headless Playwright sessions.

1|2|Updated Jan 4, 2024
One-click install
npx skills add https://github.com/NaKMiers/Port4lio --skill setup-browser-cookies-nakmiers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/NaKMiers/Port4lio/tree/main/.agents/skills/setup-browser-cookies
Command: npx skills add https://github.com/NaKMiers/Port4lio --skill setup-browser-cookies-nakmiers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cookies from your real Chromium browser are needed to run authenticated QA tests in a headless session. This Skill provides an interactive picker to select domains and imports the chosen cookies into Playwright sessions.

Core Features & Use Cases

  • Interactive cookie domain picker to authorize QA tests.
  • Works with Chrome/Chromium cookies and the headless browse session.
  • Supports one-time setup and per-project usage to preserve cookies across runs.

Quick Start

Run the setup-browser-cookies skill and use the interactive picker to import the domains you need for QA.

Frequently Asked Questions about setup-browser-cookies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import cookies from my real browser into a Playwright headless session?

Importing cookies for QA testing involves selecting specific domains from your real Chromium browser using an interactive picker UI, then loading those chosen cookies into a headless browse session to access authenticated pages.

Why do my authenticated QA tests fail in headless browser sessions?

Authenticated QA tests fail in headless browser sessions because they lack the session cookies present in your real Chromium browser, a problem solved by interactively selecting and importing the required cookie domains before running tests.

Can I select specific cookie domains to import for automated QA testing?

Yes, you can select specific cookie domains for automated QA testing using the interactive picker UI provided by the skill, which relies on the AskUserQuestion flow to guide domain selection before importing cookies into the headless session.

Does the cookie import process work with Chrome and Chromium browsers?

Yes, the cookie import process works with both Chrome and Chromium browsers, extracting real cookies and transferring them into the headless browse session for Playwright automation and QA testing.

What is the best way to preserve cookies across multiple Playwright QA runs?

The best way to preserve cookies across multiple Playwright QA runs is to use the skill for per-project usage, allowing you to maintain imported Chromium cookies across test executions without repeatedly performing manual one-time setups.