(accept: (title: string) => boolean)
| 311 | } |
| 312 | |
| 313 | async waitForTitle(accept: (title: string) => boolean): Promise<void> { |
| 314 | await this.poll(() => this.driver.getTitle(), accept, `get title`); |
| 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}'`); |