Merge pull request #21688 from ta2gch/puppeteer-promised-boundingBox

[puppeteer] Fix .boundingBox() method type
This commit is contained in:
Benjamin Lichtman
2017-11-22 12:05:37 -05:00
committed by GitHub
+2 -2
View File
@@ -411,9 +411,9 @@ export interface ElementHandle extends JSHandle {
*/
$$(selector: string): Promise<ElementHandle[]>;
/**
* This method returns the bounding box of the element (relative to the main frame), or null if the element is not visible.
* This method returns the value resolve to the bounding box of the element (relative to the main frame), or null if the element is not visible.
*/
boundingBox(): BoundingBox | null;
boundingBox(): Promise<BoundingBox | null>;
/**
* This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element.
* If the element is detached from DOM, the method throws an error.