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

Method grabPageScrollPosition

lib/helper/WebDriver.js:2901–2910  ·  view source on GitHub ↗

* {{> grabPageScrollPosition }}

()

Source from the content-addressed store, hash-verified

2899 * {{> grabPageScrollPosition }}
2900 */
2901 async grabPageScrollPosition() {
2902 function getScrollPosition() {
2903 return {
2904 x: window.pageXOffset,
2905 y: window.pageYOffset,
2906 }
2907 }
2908
2909 return this.executeScript(getScrollPosition)
2910 }
2911
2912 /**
2913 * {{> grabElementBoundingRect }}

Callers

nothing calls this directly

Calls 1

executeScriptMethod · 0.95

Tested by

no test coverage detected