Fix .boundingBox() method type

This commit is contained in:
TANIGUCHI Masaya
2017-11-22 20:02:56 +09:00
parent b6cbca4ed1
commit e0709a35d6

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.