MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / scroll_to_bottom

Method scroll_to_bottom

seleniumbase/core/sb_cdp.py:3471–3475  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3469 self.loop.run_until_complete(self.page.wait(0.1))
3470
3471 def scroll_to_bottom(self):
3472 js_code = "window.scrollTo(0, 10000);"
3473 with suppress(Exception):
3474 self.loop.run_until_complete(self.page.evaluate(js_code))
3475 self.loop.run_until_complete(self.page.wait(0.1))
3476
3477 def scroll_up(self, amount=25):
3478 """Scrolls up as a percentage of the page."""

Calls 2

evaluateMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected