MCPcopy Index your code
hub / github.com/microsoft/vscode / waitForTitle

Method waitForTitle

test/automation/src/code.ts:313–315  ·  view source on GitHub ↗
(accept: (title: string) => boolean)

Source from the content-addressed store, hash-verified

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}'`);

Callers 1

setupFunction · 0.80

Calls 2

pollMethod · 0.95
getTitleMethod · 0.65

Tested by 1

setupFunction · 0.64