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

Method scrollIntoView

lib/helper/WebDriver.js:1905–1910  ·  view source on GitHub ↗

* {{> scrollIntoView }} *

(locator, scrollIntoViewOptions)

Source from the content-addressed store, hash-verified

1903 *
1904 */
1905 async scrollIntoView(locator, scrollIntoViewOptions) {
1906 const res = await this._locate(withStrictLocator(locator), true)
1907 assertElementExists(res, locator)
1908 const elem = usingFirstElement(res)
1909 return elem.scrollIntoView(scrollIntoViewOptions)
1910 }
1911
1912 /**
1913 * {{> scrollTo }}

Callers

nothing calls this directly

Calls 4

_locateMethod · 0.95
withStrictLocatorFunction · 0.85
usingFirstElementFunction · 0.85
assertElementExistsFunction · 0.70

Tested by

no test coverage detected