MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / newSession

Function newSession

javascript/selenium-webdriver/test/bidi/vendor_test.js:189–193  ·  view source on GitHub ↗
(capabilities, result = { sessionId: 's1', capabilities: response })

Source from the content-addressed store, hash-verified

187 }
188
189 async function newSession(capabilities, result = { sessionId: 's1', capabilities: response }) {
190 const bidi = recordingBidi(result)
191 const session = await new Session(bidi, DOMAIN_TOKEN).new({ capabilities })
192 return { frames: bidi.frames, session }
193 }
194
195 // Each case is checked against its own message so a failure from some other field can't pass it.
196 function rejectsWith(promise, message) {

Callers 1

vendor_test.jsFile · 0.85

Calls 2

recordingBidiFunction · 0.85
newMethod · 0.45

Tested by

no test coverage detected