Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

ability to add patchright to extraction script

Gregor Žunič76a8885c74c7
diff --git a/browser_use/dom/playground/extraction.py b/browser_use/dom/playground/extraction.py
index 292900b52..2f3e2824e 100644
--- a/browser_use/dom/playground/extraction.py
+++ b/browser_use/dom/playground/extraction.py
@@ -18,6 +18,7 @@ TIMEOUT = 60
async def test_focus_vs_all_elements():
+ # async with async_patchright() as patchright:
browser_session = BrowserSession(
browser_profile=BrowserProfile(
# executable_path='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
@@ -25,7 +26,8 @@ async def test_focus_vs_all_elements():
disable_security=True,
wait_for_network_idle_page_load_time=1,
headless=False,
- )
+ ),
+ # playwright=patchright,
)
websites = [