MCPcopy
hub / github.com/codeceptjs/CodeceptJS / scrollPageToTop

Method scrollPageToTop

lib/helper/Puppeteer.js:900–904  ·  view source on GitHub ↗

* {{> scrollPageToTop }}

()

Source from the content-addressed store, hash-verified

898 * {{> scrollPageToTop }}
899 */
900 scrollPageToTop() {
901 return this.executeScript(() => {
902 window.scrollTo(0, 0)
903 })
904 }
905
906 /**
907 * {{> scrollPageToBottom }}

Callers 4

testsFunction · 0.45

Calls 2

executeScriptMethod · 0.95
scrollToMethod · 0.45

Tested by

no test coverage detected