MCPcopy Index your code
hub / github.com/microsoft/playwright-python / scroll

Function scroll

tests/async/test_element_handle.py:452–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 done = []
451
452 async def scroll() -> None:
453 done.append(False)
454 await div.scroll_into_view_if_needed()
455 done.append(True)
456
457 promise = asyncio.create_task(scroll())
458 await asyncio.sleep(0) # execute scheduled tasks, but don't await them

Callers 1

waiting_helperFunction · 0.85

Calls 2

appendMethod · 0.80

Tested by

no test coverage detected