* Execute code only in Web mode. * * ```js * I.runInWeb(() => { * I.waitForElement('#data'); * I.seeInCurrentUrl('/data'); * }); * ``` *
()
| 532 | */ |
| 533 | |
| 534 | async runInWeb() { |
| 535 | if (!this.isWeb) return |
| 536 | recorder.session.start('Web-only actions') |
| 537 | |
| 538 | recorder.add('restore from Web session', () => recorder.session.restore(), true) |
| 539 | return recorder.promise() |
| 540 | } |
| 541 | |
| 542 | _runWithCaps(caps, fn) { |
| 543 | if (typeof caps === 'object') { |