Uses of Class
com.norconex.crawler.web.fetch.impl.playwright.PlaywrightFetcherConfig
Packages that use PlaywrightFetcherConfig
-
Uses of PlaywrightFetcherConfig in com.norconex.crawler.web.fetch.impl.playwright
Methods in com.norconex.crawler.web.fetch.impl.playwright that return PlaywrightFetcherConfigModifier and TypeMethodDescriptionPlaywrightFetcher.getConfiguration()Sets the browser launch arguments.PlaywrightFetcherConfig.setBlockServiceWorkers(boolean blockServiceWorkers) Whether to keep service workers from registering.PlaywrightFetcherConfig.setBrowser(PlaywrightBrowser browser) The browser engine used for crawling.PlaywrightFetcherConfig.setBrowserMaxAge(Duration browserMaxAge) Maximum age of a per-thread browser instance before it is restarted.PlaywrightFetcherConfig.setBrowserMaxNavigations(int browserMaxNavigations) A maximum number of navigations after which each per-thread browser instance is restarted.PlaywrightFetcherConfig.setBypassCsp(boolean bypassCsp) Whether to ignore the page's Content-Security-Policy, so scripts added bygetEarlyPageScript()orgetLatePageScript()are not blocked by it.PlaywrightFetcherConfig.setChannel(String channel) Optional browser channel that instructs Playwright to use a system-installed browser instead of its own downloaded binaries.PlaywrightFetcherConfig.setCleanupInterval(@NonNull Duration cleanupInterval) Interval between checks for idle (unused) browser instances to close.PlaywrightFetcherConfig.setColorScheme(PlaywrightFetcherConfig.ColorScheme colorScheme) The preferred color scheme.PlaywrightFetcherConfig.setEarlyPageScript(String earlyPageScript) Optional JavaScript code executed immediately after page navigation, before any wait conditions are applied.PlaywrightFetcherConfig.setExecutablePath(Path executablePath) Optional path to a custom browser executable.PlaywrightFetcherConfig.setExtraHttpHeaders(Map<String, String> headers) Sets the extra HTTP headers sent with every request.PlaywrightFetcherConfig.setHeadless(boolean headless) Whether to run the browser in headless mode.PlaywrightFetcherConfig.setHttpCredentials(Credentials credentials) Sets the credentials for HTTP authentication challenges.PlaywrightFetcherConfig.setIgnoreHttpsErrors(boolean ignoreHttpsErrors) Whentrue, HTTPS certificate errors are ignored.PlaywrightFetcherConfig.setJavaScriptEnabled(boolean javaScriptEnabled) Whether the browser runs the page's JavaScript.PlaywrightFetcherConfig.setLatePageScript(String latePageScript) Optional JavaScript code executed after all wait conditions have been satisfied.The locale the browser reports (e.g.,fr-CA).PlaywrightFetcherConfig.setMobile(boolean mobile) Whether to behave as a mobile device: the page is told it is mobile and the screen is touch-enabled.PlaywrightFetcherConfig.setPageLoadTimeout(Duration pageLoadTimeout) Maximum time to wait for the page load event.PlaywrightFetcherConfig.setProxySettings(ProxySettings proxySettings) Proxy settings used when launching the browser.PlaywrightFetcherConfig.setScreenshotHandler(PlaywrightScreenshotHandler screenshotHandler) When configured, takes a screenshot of each fetched page and stores it according to the handler's configuration (document metadata field or local directory).Optional slow-motion delay applied between Playwright operations.PlaywrightFetcherConfig.setStorageStatePath(Path storageStatePath) A file Playwright wrote of a signed-in session (cookies and local storage, as saved bycontext.storageState()).PlaywrightFetcherConfig.setTimezoneId(String timezoneId) The timezone the browser reports (an IANA name, e.g.,America/Toronto).PlaywrightFetcherConfig.setUserAgent(String userAgent) The user agent the browser sends, in place of its own.PlaywrightFetcherConfig.setWaitForElementSelector(String waitForElementSelector) Selector expression used to wait for a specific element to appear in the page before returning.PlaywrightFetcherConfig.setWaitForElementTimeout(Duration waitForElementTimeout) Maximum time to wait for the element identified bygetWaitForElementSelector()to appear.PlaywrightFetcherConfig.setWaitForElementType(PlaywrightFetcherConfig.WaitElementType waitForElementType) The type of reference used when waiting for an element to appear.PlaywrightFetcherConfig.setWindowSize(Dimension windowSize) Optional browser viewport size.