fixed the types for pupeteer-elementhandle-type

This commit is contained in:
Chris Pawlukiewicz
2017-11-02 15:52:39 -06:00
parent b67c928904
commit 1fa3b78ceb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ export interface ElementHandle extends JSHandle {
screenshot(options?: ScreenshotOptions): Promise<Buffer>;
tap(): Promise<void>;
toString(): string;
type(selector: string, text: string, options?: { delay: number }): Promise<void>;
type(text: string, options?: { delay: number }): Promise<void>;
uploadFile(...filePaths: string[]): Promise<void>;
}
+1 -1
View File
@@ -208,7 +208,7 @@ puppeteer.launch().then(async browser => {
}
});
console.log(button.toString());
div.type("input", "Hello World", { delay: 10 });
input.type("Hello World", { delay: 10 });
const buttonText = await (await button.getProperty('textContent')).jsonValue();