MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / grabPageScrollPosition

Method grabPageScrollPosition

lib/helper/Playwright.js:1707–1716  ·  view source on GitHub ↗

* {{> grabPageScrollPosition }}

()

Source from the content-addressed store, hash-verified

1705 * {{> grabPageScrollPosition }}
1706 */
1707 async grabPageScrollPosition() {
1708 function getScrollPosition() {
1709 return {
1710 x: window.pageXOffset,
1711 y: window.pageYOffset,
1712 }
1713 }
1714
1715 return this.executeScript(getScrollPosition)
1716 }
1717
1718 /**
1719 * {{> seeTitleEquals }}

Callers

nothing calls this directly

Calls 1

executeScriptMethod · 0.95

Tested by

no test coverage detected