(selector: string, text: string)
| 315 | } |
| 316 | |
| 317 | async waitForTypeInEditor(selector: string, text: string): Promise<void> { |
| 318 | await this.poll(() => this.driver.typeInEditor(selector, text), () => true, `type in editor '${selector}'`); |
| 319 | } |
| 320 | |
| 321 | async waitForEditorSelection(selector: string, accept: (selection: { selectionStart: number; selectionEnd: number }) => boolean): Promise<void> { |
| 322 | await this.poll(() => this.driver.getEditorSelection(selector), accept, `get editor selection '${selector}'`); |