Class: ChromeCookieQueryStrategy
Defined in: core/browsers/chrome/ChromeCookieQueryStrategy.ts:17
Strategy for querying cookies from Chrome browser. Extends ChromiumCookieQueryStrategy with Chrome as the target browser. Supports optional profile-name filtering via the profileName constructor parameter.
Example
const strategy = new ChromeCookieQueryStrategy();
const cookies = await strategy.queryCookies('session', 'example.com');
// With profile filtering
const strategy = new ChromeCookieQueryStrategy('Work');
const cookies = await strategy.queryCookies('session', 'example.com');Extends
Constructors
Constructor
new ChromeCookieQueryStrategy(
profileName?):ChromeCookieQueryStrategy
Defined in: core/browsers/chrome/ChromeCookieQueryStrategy.ts:22
Creates a new instance of ChromeCookieQueryStrategy
Parameters
profileName?
string
Optional specific profile name to target
Returns
ChromeCookieQueryStrategy
Overrides
ChromiumCookieQueryStrategy.constructor
Properties
browserName
readonlybrowserName:"unknown"|"Chrome"|"Firefox"|"Safari"|"internal"
Defined in: core/browsers/BaseCookieQueryStrategy.ts:41
The name of the browser this strategy is for
Inherited from
ChromiumCookieQueryStrategy.browserName
Methods
batchQueryCookies()
batchQueryCookies(
specs):Promise<object[]>
Defined in: core/browsers/chromium/BaseChromiumCookieQueryStrategy.ts:111
Batch query cookies for multiple specs Optimized to execute combined SQL queries per database file
Parameters
specs
object[]
Array of cookie specifications
Returns
Promise<object[]>
Array of exported cookies
Inherited from
ChromiumCookieQueryStrategy.batchQueryCookies
queryCookies()
queryCookies(
name,domain,store?,force?):Promise<object[]>
Defined in: core/browsers/BaseCookieQueryStrategy.ts:57
Queries cookies from the browser's cookie store
Parameters
name
string
The name pattern to match cookies against
domain
string
The domain pattern to match cookies against
store?
string
Optional path to a specific cookie store file
force?
boolean
Whether to force operations despite warnings (e.g., locked databases)
Returns
Promise<object[]>
A promise that resolves to an array of exported cookies