MCPcopy Create free account
hub / github.com/microsoft/vscode / robustClick

Method robustClick

test/automation/src/code.ts:292–295  ·  view source on GitHub ↗

* Clicks an element using Playwright's actionability-checked `page.click` (which * re-verifies `elementFromPoint` right before dispatching, so the element can't * shift under the click), with a stable-coordinates fallback when actionability * checks fail due to an overlay intercepting pointer

(selector: string)

Source from the content-addressed store, hash-verified

290 * in the editor area when extensions register a language status item).
291 */
292 async robustClick(selector: string): Promise<void> {
293 await this.waitForElement(selector);
294 await this.driver.robustClick(selector);
295 }
296
297 async waitForSetValue(selector: string, value: string): Promise<void> {
298 await this.poll(() => this.driver.setValue(selector, value), () => true, `set value '${selector}'`);

Callers 1

clickOnMethod · 0.45

Calls 1

waitForElementMethod · 0.95

Tested by

no test coverage detected