MCPcopy
hub / github.com/microsoft/vscode / waitForActiveElement

Method waitForActiveElement

test/automation/src/code.ts:309–311  ·  view source on GitHub ↗
(selector: string, retryCount: number = 200)

Source from the content-addressed store, hash-verified

307 }
308
309 async waitForActiveElement(selector: string, retryCount: number = 200): Promise<void> {
310 await this.poll(() => this.driver.isActiveElement(selector), r => r, `is active element '${selector}'`, retryCount);
311 }
312
313 async waitForTitle(accept: (title: string) => boolean): Promise<void> {
314 await this.poll(() => this.driver.getTitle(), accept, `get title`);

Callers 15

acceptMethod · 0.80
updateKeybindingMethod · 0.80
renameMethod · 0.80
waitForEditorFocusMethod · 0.80
waitForTypeInEditorMethod · 0.80
waitForActiveEditorMethod · 0.80
commitMethod · 0.80
waitForTypeInEditorMethod · 0.80
focusInCellOutputMethod · 0.80
openUserSettingsUIMethod · 0.80
waitForInputFocusMethod · 0.80

Calls 2

pollMethod · 0.95
isActiveElementMethod · 0.65

Tested by

no test coverage detected