Skip to content

Commit a60fee8

Browse files
committed
refactor(browser): reduce dom stable timeout to 300ms
1 parent dd98a0b commit a60fee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npiai/core/tool/_browser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def element_to_json(self, elem: ElementHandle):
193193

194194
async def init_observer(self):
195195
"""Initialize a mutation observer on the current page"""
196-
await self.playwright.page.evaluate("() => npi.initObserver()")
196+
await self.playwright.page.evaluate("() => npi.initObserver(300)")
197197

198198
async def wait_for_stable(self):
199199
"""Wait for the current page to be stable"""

0 commit comments

Comments
 (0)