* Set headers for all next requests * * ```js * I.setPlaywrightRequestHeaders({ * 'X-Sent-By': 'CodeceptJS', * }); * ``` * * @param {object} customHeaders headers to set
(customHeaders)
| 1488 | * @param {object} customHeaders headers to set |
| 1489 | */ |
| 1490 | async setPlaywrightRequestHeaders(customHeaders) { |
| 1491 | if (!customHeaders) { |
| 1492 | throw new Error('Cannot send empty headers.') |
| 1493 | } |
| 1494 | return this.browserContext.setExtraHTTPHeaders(customHeaders) |
| 1495 | } |
| 1496 | |
| 1497 | /** |
| 1498 | * {{> moveCursorTo }} |
no outgoing calls
no test coverage detected