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

Method waitForElements

test/automation/src/code.ts:301–303  ·  view source on GitHub ↗
(selector: string, recursive: boolean, accept: (result: IElement[]) => boolean = result => result.length > 0, retryCount?: number)

Source from the content-addressed store, hash-verified

299 }
300
301 async waitForElements(selector: string, recursive: boolean, accept: (result: IElement[]) => boolean = result => result.length > 0, retryCount?: number): Promise<IElement[]> {
302 return await this.poll(() => this.driver.getElements(selector, recursive), accept, `get elements '${selector}'`, retryCount);
303 }
304
305 async waitForElement(selector: string, accept: (result: IElement | undefined) => boolean = result => !!result, retryCount: number = 200): Promise<IElement> {
306 return await this.poll<IElement>(() => this.driver.getElements(selector).then(els => els[0]), accept, `get element '${selector}'`, retryCount);

Callers 15

runCommandMethod · 0.80
getTerminalGroupsMethod · 0.80
getClassSelectorsMethod · 0.80
getViewLineIndexMethod · 0.80
selectSessionTypeMethod · 0.80
saveOpenedFileMethod · 0.80
waitForResponseMethod · 0.80
waitForEditorResponseMethod · 0.80
waitForModelInFooterMethod · 0.80

Calls 2

pollMethod · 0.95
getElementsMethod · 0.65

Tested by 3

setupFunction · 0.64
checkCommandAndOutputFunction · 0.64
setupFunction · 0.64