setup-browser-cookies

Import cookies from a Chromium browser into a headless Playwright session.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Import cookies from your real Chromium browser into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages. Use when asked to "import cookies", "login to the site", or "authenticate the browser". (gstack)

Core Features & Use Cases

  • Interactive cookie picker UI to select domains
  • Decrypt and load cookies into the Playwright headless session
  • Use during QA testing for authenticated pages

Quick Start

Open the cookie picker, choose the domains to import, and load them into your headless session.

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 real browser cookies into a headless Playwright session for QA testing?

To import browser cookies into Playwright, this skill decrypts cookies from a real Chromium browser and loads them into your headless session. It provides an interactive picker UI so you can select exactly which cookie domains to import for testing authenticated pages.

Can I reuse my authenticated Chromium browser cookies for automated browser testing?

Yes, you can reuse authenticated Chromium cookies for automated testing. The skill extracts and decrypts real browser cookies, then injects them into a headless Playwright session, bypassing the need to script login flows during QA testing.

What do I need to set up before importing cookies into a headless session?

You need a real Chromium browser installed with active cookies, and a one-time build of the browse binary. The setup process uses bun to provide the interactive cookie picker UI before you can load cookies into the Playwright session.

Does this cookie import approach work with CDP and Playwright automation?

Yes, it works with Playwright automation and CDP. The skill bridges your real Chromium browser profile with the headless session by handling cookie decryption and directly loading the selected domain cookies into the Playwright context.

How do I select specific domains when importing cookies for QA testing?

You select specific domains using the interactive cookie picker UI. When you run the skill, it opens this interface to display available domains from your real Chromium browser, allowing you to choose exactly which authenticated sessions to load into the headless environment.

Why do my imported browser cookies fail to authenticate in headless mode?

Cookie import failures in headless mode often stem from incomplete domain selection or missing decryption dependencies. Ensure you select all relevant domains in the picker UI and that the one-time browse binary build using bun completes successfully before loading cookies.