Skip to main content

build_launch_options

Function build_launch_options 

Source
pub fn build_launch_options(
    config: &BrowserConfig,
    stealth: bool,
    extra_stealth_args: &[String],
) -> LaunchOptions
Expand description

Build Playwright launch options from the given browser configuration and stealth flags.

This function constructs the complete argument list by combining default args, user-supplied extra_flags, stealth args (when stealth is true), and any additional stealth args produced by [StealthConfig::extra_stealth_args]. It then strips out harmful flags that would reveal automation (see filter_harmful_args). Proxy, executable path, channel, and timeout settings from the config are also applied.