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

Method grabPageScrollPosition

lib/helper/Puppeteer.js:952–961  ·  view source on GitHub ↗

* {{> grabPageScrollPosition }}

()

Source from the content-addressed store, hash-verified

950 * {{> grabPageScrollPosition }}
951 */
952 async grabPageScrollPosition() {
953 function getScrollPosition() {
954 return {
955 x: window.pageXOffset,
956 y: window.pageYOffset,
957 }
958 }
959
960 return this.executeScript(getScrollPosition)
961 }
962
963 /**
964 * {{> seeTitleEquals }}

Callers 2

testsFunction · 0.45

Calls 1

executeScriptMethod · 0.95

Tested by

no test coverage detected