* 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)
| 235 | * @return {string} The resolved message |
| 236 | */ |
| 237 | function resolveWaitMessage(message) { |
| 238 | return message ? `${typeof message === 'function' ? message() : message}\n` : '' |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * Structural interface for a WebDriver client. |
no test coverage detected