@quo0/stiletto
Version:
With stiletto library you will be able to mock requests and choose between preconfigured responses right on the fly via UI
62 lines (61 loc) • 1.5 kB
TypeScript
export interface StilettoBrowserSettings {
acceptDownloads?: boolean;
bypassCSP?: boolean;
colorScheme?: 'light' | 'dark' | 'no-preference';
deviceScaleFactor?: number;
devtools?: boolean;
downloadsPath?: string;
env?: {
[key: string]: string | number | boolean;
};
executablePath?: string;
extraHTTPHeaders?: {
[key: string]: string;
};
geolocation?: {
latitude: number;
longitude: number;
accuracy?: number;
};
handleSIGHUP?: boolean;
handleSIGINT?: boolean;
handleSIGTERM?: boolean;
httpCredentials?: {
username: string;
password: string;
};
args?: Array<string>;
ignoreDefaultArgs?: boolean | Array<string>;
ignoreHTTPSErrors?: boolean;
isMobile?: boolean;
hasTouch?: boolean;
javaScriptEnabled?: boolean;
locale?: string;
offline?: boolean;
permissions?: Array<string>;
proxy?: {
server: string;
bypass?: string;
username?: string;
password?: string;
};
recordHar?: {
omitContent?: boolean;
path: string;
};
recordVideo?: {
dir: string;
size?: {
width: number;
height: number;
};
};
slowMo?: number;
timeout?: number;
timezoneId?: string;
userAgent?: string;
viewport?: null | {
width: number;
height: number;
};
}