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 [源码]¶
创建一个Playwright浏览器。
- 参数
headless (布尔值) – 是否以无头模式运行浏览器。默认为True。
args (可选[列表[字符串]]) – 要传递给browser.chromium.launch的参数
- 返回
Playwright浏览器。
- 返回类型
SyncBrowser