StagehandLaunchContext
Hierarchy
- BrowserLaunchContext<LaunchOptions, BrowserType>
- StagehandLaunchContext
Index
Properties
optionalinheritedbrowserPerProxy
If set to true, the crawler respects the proxy url generated for the given request.
This aligns the browser-based crawlers with the HttpCrawler.
Might cause performance issues, as Crawlee might launch too many browser instances.
optionalinheritedexperimentalContainersexperimental
Like useIncognitoPages, but for persistent contexts, so cache is used for faster loading.
Works best with Firefox. Unstable on Chromium.
optionallauncher
By default this function uses require("playwright").chromium.
If you want to use a different browser you can pass it by this property.
optionallaunchOptions
Playwright launch options. These will be passed to Stagehand's localBrowserLaunchOptions after fingerprinting is applied.
optionalproxyUrl
URL to a HTTP proxy server. It must define the port number, and it may also contain proxy username and password.
Example: http://bob:pass123@proxy.example.com:1234.
optionalstagehandOptions
Stagehand-specific configuration for AI operations.
optionaluseChrome
If true and executablePath is not set,
Playwright will launch full Google Chrome browser available on the machine
rather than the bundled Chromium.
optionaluseIncognitoPages
With this option selected, all pages will be opened in a new incognito browser context.
optionalinheriteduserAgent
The User-Agent HTTP header used by the browser.
If not provided, the function sets User-Agent to a reasonable default
to reduce the chance of detection of the crawler.
optionaluserDataDir
Sets the User Data Directory path. The user data directory contains profile data such as history, bookmarks, and cookies.
Launch context for Stagehand crawler with AI-specific options.