MCPcopy
hub / github.com/blitz-js/blitz / updateChain

Method updateChain

integration-tests/utils/wd-chain.ts:9–17  ·  view source on GitHub ↗
(nextCall)

Source from the content-addressed store, hash-verified

7 }
8
9 updateChain(nextCall) {
10 if (!this.promise) {
11 this.promise = Promise.resolve()
12 }
13 this.promise = this.promise.then(nextCall)
14 this.then = (...args) => this.promise.then(...args)
15 this.catch = (...args) => this.promise.catch(...args)
16 return this
17 }
18
19 elementByCss(sel) {
20 return this.updateChain(() =>

Callers 15

elementByCssMethod · 0.95
elementByXpathMethod · 0.95
getValueMethod · 0.95
textMethod · 0.95
typeMethod · 0.95
moveToMethod · 0.95
getComputedCssMethod · 0.95
getAttributeMethod · 0.95
clickMethod · 0.95
elementsByCssMethod · 0.95
elementsByIdMethod · 0.95
waitForElementByCssMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected