mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
dispatch input event
This commit is contained in:
@@ -34,7 +34,11 @@ class WindowDriver implements IWindowDriver {
|
||||
throw new Error('Element not found');
|
||||
}
|
||||
|
||||
(element as HTMLInputElement).value = text;
|
||||
const inputElement = element as HTMLInputElement;
|
||||
inputElement.value = text;
|
||||
|
||||
const event = new Event('input', { bubbles: true, cancelable: true });
|
||||
inputElement.dispatchEvent(event);
|
||||
}
|
||||
|
||||
async getTitle(): TPromise<string> {
|
||||
|
||||
Reference in New Issue
Block a user