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.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.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.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.setHeadless(boolean headless) Whether to run the browser in headless mode.PlaywrightFetcherConfig.setIgnoreHttpsErrors(boolean ignoreHttpsErrors) Whentrue, HTTPS certificate errors are ignored.PlaywrightFetcherConfig.setLatePageScript(String latePageScript) Optional JavaScript code executed after all wait conditions have been satisfied.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.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.