MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / resolveWaitMessage

Function resolveWaitMessage

javascript/selenium-webdriver/lib/webdriver.js:237–239  ·  view source on GitHub ↗

* Resolves a wait message from either a function or a string. * @param {(string|Function)=} message An optional message to use if the wait times out. * @return {string} The resolved message

(message)

Source from the content-addressed store, hash-verified

235 * @return {string} The resolved message
236 */
237function resolveWaitMessage(message) {
238 return message ? `${typeof message === 'function' ? message() : message}\n` : ''
239}
240
241/**
242 * Structural interface for a WebDriver client.

Callers 2

waitMethod · 0.85
pollConditionMethod · 0.85

Calls 1

messageFunction · 0.85

Tested by

no test coverage detected