diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index 72a693df30..b6220485fb 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -411,9 +411,9 @@ export interface ElementHandle extends JSHandle { */ $$(selector: string): Promise; /** - * 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; /** * 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.