Uses of Class
com.microsoft.playwright.BrowserType.LaunchPersistentContextOptions
Packages that use BrowserType.LaunchPersistentContextOptions
-
Uses of BrowserType.LaunchPersistentContextOptions in com.microsoft.playwright
Methods in com.microsoft.playwright that return BrowserType.LaunchPersistentContextOptionsModifier and TypeMethodDescriptionBrowserType.LaunchPersistentContextOptions.setAcceptDownloads(boolean acceptDownloads) Whether to automatically download all the attachments.Additional arguments to pass to the browser instance.BrowserType.LaunchPersistentContextOptions.setBaseURL(String baseURL) When usingPage.navigate(),Page.route(),Page.waitForURL(),Page.waitForRequest(), orPage.waitForResponse()it takes the base URL in consideration by using theURL()constructor for building the corresponding URL.BrowserType.LaunchPersistentContextOptions.setBypassCSP(boolean bypassCSP) Toggles bypassing page's Content-Security-Policy.BrowserType.LaunchPersistentContextOptions.setChannel(BrowserChannel channel) Deprecated.BrowserType.LaunchPersistentContextOptions.setChannel(String channel) Browser distribution channel.BrowserType.LaunchPersistentContextOptions.setChromiumSandbox(boolean chromiumSandbox) Enable Chromium sandboxing.BrowserType.LaunchPersistentContextOptions.setColorScheme(ColorScheme colorScheme) Emulates"prefers-colors-scheme"media feature, supported values are"light","dark","no-preference".BrowserType.LaunchPersistentContextOptions.setDeviceScaleFactor(double deviceScaleFactor) Specify device scale factor (can be thought of as dpr).BrowserType.LaunchPersistentContextOptions.setDevtools(boolean devtools) **Chromium-only** Whether to auto-open a Developer Tools panel for each tab.BrowserType.LaunchPersistentContextOptions.setDownloadsPath(Path downloadsPath) If specified, accepted downloads are downloaded into this directory.Specify environment variables that will be visible to the browser.BrowserType.LaunchPersistentContextOptions.setExecutablePath(Path executablePath) Path to a browser executable to run instead of the bundled one.BrowserType.LaunchPersistentContextOptions.setExtraHTTPHeaders(Map<String, String> extraHTTPHeaders) An object containing additional HTTP headers to be sent with every request.BrowserType.LaunchPersistentContextOptions.setForcedColors(ForcedColors forcedColors) Emulates"forced-colors"media feature, supported values are"active","none".BrowserType.LaunchPersistentContextOptions.setGeolocation(double latitude, double longitude) BrowserType.LaunchPersistentContextOptions.setGeolocation(Geolocation geolocation) BrowserType.LaunchPersistentContextOptions.setHandleSIGHUP(boolean handleSIGHUP) Close the browser process on SIGHUP.BrowserType.LaunchPersistentContextOptions.setHandleSIGINT(boolean handleSIGINT) Close the browser process on Ctrl-C.BrowserType.LaunchPersistentContextOptions.setHandleSIGTERM(boolean handleSIGTERM) Close the browser process on SIGTERM.BrowserType.LaunchPersistentContextOptions.setHasTouch(boolean hasTouch) Specifies if viewport supports touch events.BrowserType.LaunchPersistentContextOptions.setHeadless(boolean headless) Whether to run browser in headless mode.BrowserType.LaunchPersistentContextOptions.setHttpCredentials(HttpCredentials httpCredentials) Credentials for HTTP authentication.BrowserType.LaunchPersistentContextOptions.setHttpCredentials(String username, String password) Credentials for HTTP authentication.BrowserType.LaunchPersistentContextOptions.setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) Iftrue, Playwright does not pass its own configurations args and only uses the ones fromargs.BrowserType.LaunchPersistentContextOptions.setIgnoreDefaultArgs(List<String> ignoreDefaultArgs) Iftrue, Playwright does not pass its own configurations args and only uses the ones fromargs.BrowserType.LaunchPersistentContextOptions.setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) Whether to ignore HTTPS errors when sending network requests.BrowserType.LaunchPersistentContextOptions.setIsMobile(boolean isMobile) Whether themeta viewporttag is taken into account and touch events are enabled.BrowserType.LaunchPersistentContextOptions.setJavaScriptEnabled(boolean javaScriptEnabled) Whether or not to enable JavaScript in the context.Specify user locale, for exampleen-GB,de-DE, etc.BrowserType.LaunchPersistentContextOptions.setOffline(boolean offline) Whether to emulate network being offline.BrowserType.LaunchPersistentContextOptions.setPermissions(List<String> permissions) A list of permissions to grant to all pages in this context.Network proxy settings.Network proxy settings.BrowserType.LaunchPersistentContextOptions.setRecordHarContent(HarContentPolicy recordHarContent) Optional setting to control resource content management.BrowserType.LaunchPersistentContextOptions.setRecordHarMode(HarMode recordHarMode) When set tominimal, only record information necessary for routing from HAR.BrowserType.LaunchPersistentContextOptions.setRecordHarOmitContent(boolean recordHarOmitContent) Optional setting to control whether to omit request content from the HAR.BrowserType.LaunchPersistentContextOptions.setRecordHarPath(Path recordHarPath) Enables HAR recording for all pages into the specified HAR file on the filesystem.BrowserType.LaunchPersistentContextOptions.setRecordHarUrlFilter(String recordHarUrlFilter) BrowserType.LaunchPersistentContextOptions.setRecordHarUrlFilter(Pattern recordHarUrlFilter) BrowserType.LaunchPersistentContextOptions.setRecordVideoDir(Path recordVideoDir) Enables video recording for all pages into the specified directory.BrowserType.LaunchPersistentContextOptions.setRecordVideoSize(int width, int height) Dimensions of the recorded videos.BrowserType.LaunchPersistentContextOptions.setRecordVideoSize(RecordVideoSize recordVideoSize) Dimensions of the recorded videos.BrowserType.LaunchPersistentContextOptions.setReducedMotion(ReducedMotion reducedMotion) Emulates"prefers-reduced-motion"media feature, supported values are"reduce","no-preference".BrowserType.LaunchPersistentContextOptions.setScreenSize(int width, int height) Emulates consistent window screen size available inside web page viawindow.screen.BrowserType.LaunchPersistentContextOptions.setScreenSize(ScreenSize screenSize) Emulates consistent window screen size available inside web page viawindow.screen.BrowserType.LaunchPersistentContextOptions.setServiceWorkers(ServiceWorkerPolicy serviceWorkers) Whether to allow sites to register Service workers.BrowserType.LaunchPersistentContextOptions.setSlowMo(double slowMo) Slows down Playwright operations by the specified amount of milliseconds.BrowserType.LaunchPersistentContextOptions.setStrictSelectors(boolean strictSelectors) If set to true, enables strict selectors mode for this context.BrowserType.LaunchPersistentContextOptions.setTimeout(double timeout) Maximum time in milliseconds to wait for the browser instance to start.BrowserType.LaunchPersistentContextOptions.setTimezoneId(String timezoneId) Changes the timezone of the context.BrowserType.LaunchPersistentContextOptions.setTracesDir(Path tracesDir) If specified, traces are saved into this directory.BrowserType.LaunchPersistentContextOptions.setUserAgent(String userAgent) Specific user agent to use in this context.BrowserType.LaunchPersistentContextOptions.setViewportSize(int width, int height) Emulates consistent viewport for each page.BrowserType.LaunchPersistentContextOptions.setViewportSize(ViewportSize viewportSize) Emulates consistent viewport for each page.Methods in com.microsoft.playwright with parameters of type BrowserType.LaunchPersistentContextOptionsModifier and TypeMethodDescriptionBrowserType.launchPersistentContext(Path userDataDir, BrowserType.LaunchPersistentContextOptions options) Returns the persistent browser context instance. -
Uses of BrowserType.LaunchPersistentContextOptions in com.microsoft.playwright.impl
Methods in com.microsoft.playwright.impl with parameters of type BrowserType.LaunchPersistentContextOptionsModifier and TypeMethodDescriptionBrowserTypeImpl.launchPersistentContext(Path userDataDir, BrowserType.LaunchPersistentContextOptions options) private BrowserContextImplBrowserTypeImpl.launchPersistentContextImpl(Path userDataDir, BrowserType.LaunchPersistentContextOptions options)