langchain_community.tools.playwright.utils.create_sync_playwright_browser¶

langchain_community.tools.playwright.utils.create_sync_playwright_browser(headless: bool = True, args: Optional[List[str]] = None) SyncBrowser[source]¶

Create a playwright browser.

Parameters
  • headless – Whether to run the browser in headless mode. Defaults to True.

  • args – arguments to pass to browser.chromium.launch

Returns

The playwright browser.

Return type

SyncBrowser

Examples using create_sync_playwright_browser¶