mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
fixed the types for pupeteer-elementhandle-type
This commit is contained in:
Vendored
+1
-1
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user