doc(api.md): ElementHandle.boundingBox() returns a promise (#1437)

This commit is contained in:
Andrey Lushnikov 2017-11-21 10:13:44 +03:00 committed by GitHub
parent 88eaede5ad
commit 3b60ad1c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1794,7 +1794,7 @@ The method runs `element.querySelectorAll` within the page. If no elements match
- returns: <[elementhandle]>
#### elementHandle.boundingBox()
- returns: <?[Object]>
- returns: <[Promise]<?[Object]>>
- x <[number]> the x coordinate of the element in pixels.
- y <[number]> the y coordinate of the element in pixels.
- width <[number]> the width of the element in pixels.