提交 43207efb 编写于 作者: J Joao Moreno

dispatch input event

上级 37b56613
......@@ -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> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册