(context)
| 3472 | } |
| 3473 | |
| 3474 | function prepareLocateFn(context) { |
| 3475 | if (!context) return this._locate.bind(this) |
| 3476 | return l => { |
| 3477 | l = new Locator(l, 'css') |
| 3478 | return this._locate(context, true).then(async res => { |
| 3479 | assertElementExists(res, context, 'Context element') |
| 3480 | return res[0].$$(l.simplify()) |
| 3481 | }) |
| 3482 | } |
| 3483 | } |
| 3484 | |
| 3485 | function logEvents(event) { |
| 3486 | browserLogs.push(event.text) // add log message to the array |
nothing calls this directly
no test coverage detected