@types/puppeteer
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -807,2 +807,11 @@ // Type definitions for puppeteer 1.3 | ||
/** | ||
* This method fetches an element with selector, scrolls it into view if needed, and | ||
* then uses `page.mouse` to click in the center of the element. If there's no element | ||
* matching selector, the method throws an error. | ||
* @param selector A selector to search for element to click. If there are multiple elements satisfying the selector, the first will be clicked. | ||
* @param options Specifies the click options. | ||
*/ | ||
click(selector: string, options?: ClickOptions): Promise<void>; | ||
/** Gets the full HTML contents of the page, including the doctype. */ | ||
@@ -824,2 +833,26 @@ content(): Promise<string>; | ||
/** | ||
* Evaluates a function in the page context. | ||
* If the function, passed to the page.evaluateHandle, returns a Promise, then page.evaluateHandle | ||
* would wait for the promise to resolve and return its value. | ||
* @param fn The function to be evaluated in the page context. | ||
* @param args The arguments to pass to the `fn`. | ||
* @returns A promise which resolves to return value of `fn`. | ||
*/ | ||
evaluateHandle( | ||
fn: EvaluateFn, | ||
...args: any[] | ||
): Promise<JSHandle>; | ||
/** This method fetches an element with selector and focuses it. */ | ||
focus(selector: string): Promise<void>; | ||
/** | ||
* This method fetches an element with `selector`, scrolls it into view if needed, | ||
* and then uses page.mouse to hover over the center of the element. If there's no | ||
* element matching `selector`, the method throws an error. | ||
* @param selector A selector to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered. | ||
*/ | ||
hover(selector: string): Promise<void>; | ||
/** | ||
* Sets the page content. | ||
@@ -830,5 +863,21 @@ * @param html HTML markup to assign to the page. | ||
/** | ||
* This method fetches an element with `selector`, scrolls it into view if needed, | ||
* and then uses page.touchscreen to tap in the center of the element. | ||
* @param selector A `selector` to search for element to tap. If there are multiple elements | ||
* satisfying the selector, the first will be tapped. | ||
*/ | ||
tap(selector: string): Promise<void>; | ||
/** Returns page's title. */ | ||
title(): Promise<string>; | ||
/** | ||
* Sends a `keydown`, `keypress/input`, and `keyup` event for each character in the text. | ||
* @param selector A selector of an element to type into. If there are multiple elements satisfying the selector, the first will be used. | ||
* @param text: A text to type into a focused element. | ||
* @param options: The typing parameters. | ||
*/ | ||
type(selector: string, text: string, options?: { delay: number }): Promise<void>; | ||
/** Returns frame's url. */ | ||
@@ -948,11 +997,2 @@ url(): string; | ||
/** | ||
* This method fetches an element with selector, scrolls it into view if needed, and | ||
* then uses `page.mouse` to click in the center of the element. If there's no element | ||
* matching selector, the method throws an error. | ||
* @param selector A selector to search for element to click. If there are multiple elements satisfying the selector, the first will be clicked. | ||
* @param options Specifies the click options. | ||
*/ | ||
click(selector: string, options?: ClickOptions): Promise<void>; | ||
/** Closes the current page. */ | ||
@@ -1014,5 +1054,2 @@ close(): Promise<void>; | ||
/** This method fetches an element with selector and focuses it. */ | ||
focus(selector: string): Promise<void>; | ||
/** An array of all frames attached to the page. */ | ||
@@ -1040,10 +1077,2 @@ frames(): Frame[]; | ||
/** | ||
* This method fetches an element with `selector`, scrolls it into view if needed, | ||
* and then uses page.mouse to hover over the center of the element. If there's no | ||
* element matching `selector`, the method throws an error. | ||
* @param selector A selector to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered. | ||
*/ | ||
hover(selector: string): Promise<void>; | ||
/** Returns the virtual keyboard. */ | ||
@@ -1160,10 +1189,2 @@ keyboard: Keyboard; | ||
/** | ||
* This method fetches an element with `selector`, scrolls it into view if needed, | ||
* and then uses page.touchscreen to tap in the center of the element. | ||
* @param selector A `selector` to search for element to tap. If there are multiple elements | ||
* satisfying the selector, the first will be tapped. | ||
*/ | ||
tap(selector: string): Promise<void>; | ||
/** @returns The target this page was created from */ | ||
@@ -1182,10 +1203,2 @@ target(): Target; | ||
/** | ||
* Sends a `keydown`, `keypress/input`, and `keyup` event for each character in the text. | ||
* @param selector A selector of an element to type into. If there are multiple elements satisfying the selector, the first will be used. | ||
* @param text: A text to type into a focused element. | ||
* @param options: The typing parameters. | ||
*/ | ||
type(selector: string, text: string, options?: { delay: number }): Promise<void>; | ||
/** | ||
* The page's URL. This is a shortcut for `page.mainFrame().url()` | ||
@@ -1192,0 +1205,0 @@ */ |
{ | ||
"name": "@types/puppeteer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "TypeScript definitions for puppeteer", | ||
@@ -26,3 +26,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
}, | ||
@@ -34,4 +34,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "14eadb9768f221200433f8e7c8d31601f47cd9acfa6de5533cf2c3896b91c690", | ||
"typesPublisherContentHash": "03063648e442bdda80390800a33eb4bc8cd2f4c61d45a569bf2939ce01db8307", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/puppeteer | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/puppeteer | ||
Additional Details | ||
* Last updated: Tue, 01 May 2018 16:24:24 GMT | ||
* Last updated: Fri, 04 May 2018 23:55:55 GMT | ||
* Dependencies: events, child_process, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
1248
48736