BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setAcceptDownloads(boolean acceptDownloads) |
Whether to automatically download all the attachments.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setArgs(List<String> args) |
NOTE: Use custom browser args at your own risk, as some of them may break Playwright functionality.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setBaseURL(String baseURL) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setBypassCSP(boolean bypassCSP) |
Toggles bypassing page's Content-Security-Policy.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setChannel(BrowserChannel channel) |
Deprecated.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setChannel(String channel) |
Browser distribution channel.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setChromiumSandbox(boolean chromiumSandbox) |
Enable Chromium sandboxing.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setColorScheme(ColorScheme colorScheme) |
Emulates "prefers-colors-scheme" media feature, supported values are "light", "dark",
"no-preference".
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setDeviceScaleFactor(double deviceScaleFactor) |
Specify device scale factor (can be thought of as dpr).
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setDevtools(boolean devtools) |
Deprecated.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setDownloadsPath(Path downloadsPath) |
If specified, accepted downloads are downloaded into this directory.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setEnv(Map<String,String> env) |
Specify environment variables that will be visible to the browser.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setExecutablePath(Path executablePath) |
Path to a browser executable to run instead of the bundled one.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setExtraHTTPHeaders(Map<String,String> extraHTTPHeaders) |
An object containing additional HTTP headers to be sent with every request.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setFirefoxUserPrefs(Map<String,Object> firefoxUserPrefs) |
Firefox user preferences.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setForcedColors(ForcedColors forcedColors) |
Emulates "forced-colors" media feature, supported values are "active", "none".
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setGeolocation(double latitude,
double longitude) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setGeolocation(Geolocation geolocation) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHandleSIGHUP(boolean handleSIGHUP) |
Close the browser process on SIGHUP.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHandleSIGINT(boolean handleSIGINT) |
Close the browser process on Ctrl-C.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHandleSIGTERM(boolean handleSIGTERM) |
Close the browser process on SIGTERM.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHasTouch(boolean hasTouch) |
Specifies if viewport supports touch events.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHeadless(boolean headless) |
Whether to run browser in headless mode.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHttpCredentials(HttpCredentials httpCredentials) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setHttpCredentials(String username,
String password) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) |
If true, Playwright does not pass its own configurations args and only uses the ones from args.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setIgnoreDefaultArgs(List<String> ignoreDefaultArgs) |
If true, Playwright does not pass its own configurations args and only uses the ones from args.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) |
Whether to ignore HTTPS errors when sending network requests.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setIsMobile(boolean isMobile) |
Whether the meta viewport tag is taken into account and touch events are enabled.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setJavaScriptEnabled(boolean javaScriptEnabled) |
Whether or not to enable JavaScript in the context.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setLocale(String locale) |
Specify user locale, for example en-GB, de-DE, etc.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setOffline(boolean offline) |
Whether to emulate network being offline.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setPermissions(List<String> permissions) |
A list of permissions to grant to all pages in this context.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setProxy(Proxy proxy) |
Network proxy settings.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setProxy(String server) |
Network proxy settings.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarContent(HarContentPolicy recordHarContent) |
Optional setting to control resource content management.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarMode(HarMode recordHarMode) |
When set to minimal, only record information necessary for routing from HAR.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarOmitContent(boolean recordHarOmitContent) |
Optional setting to control whether to omit request content from the HAR.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarPath(Path recordHarPath) |
Enables HAR recording for all pages into the specified HAR
file on the filesystem.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarUrlFilter(String recordHarUrlFilter) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordHarUrlFilter(Pattern recordHarUrlFilter) |
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordVideoDir(Path recordVideoDir) |
Enables video recording for all pages into the specified directory.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordVideoSize(int width,
int height) |
Dimensions of the recorded videos.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setRecordVideoSize(RecordVideoSize recordVideoSize) |
Dimensions of the recorded videos.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setReducedMotion(ReducedMotion reducedMotion) |
Emulates "prefers-reduced-motion" media feature, supported values are "reduce", "no-preference".
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setScreenSize(int width,
int height) |
Emulates consistent window screen size available inside web page via window.screen.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setScreenSize(ScreenSize screenSize) |
Emulates consistent window screen size available inside web page via window.screen.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setServiceWorkers(ServiceWorkerPolicy serviceWorkers) |
Whether to allow sites to register Service workers.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setSlowMo(double slowMo) |
Slows down Playwright operations by the specified amount of milliseconds.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setStrictSelectors(boolean strictSelectors) |
If set to true, enables strict selectors mode for this context.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setTimeout(double timeout) |
Maximum time in milliseconds to wait for the browser instance to start.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setTimezoneId(String timezoneId) |
Changes the timezone of the context.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setTracesDir(Path tracesDir) |
If specified, traces are saved into this directory.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setUserAgent(String userAgent) |
Specific user agent to use in this context.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setViewportSize(int width,
int height) |
Emulates consistent viewport for each page.
|
BrowserType.LaunchPersistentContextOptions |
BrowserType.LaunchPersistentContextOptions.setViewportSize(ViewportSize viewportSize) |
Emulates consistent viewport for each page.
|