diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 4187e4c3e6..b12bb78b52 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -70,11 +70,6 @@ await element.HoverAsync(); await element.ClickAsync(); ``` -## async method: Locator.all -- returns: <[Array]<[ElementHandle]>> - -Resolves given locator to all matching DOM elements. - ## async method: Locator.boundingBox - returns: <[null]|[Object]> - `x` <[float]> the x coordinate of the element in pixels. @@ -167,6 +162,13 @@ When all steps combined have not finished during the specified [`option: timeout ### option: Locator.click.timeout = %%-input-timeout-%% ### option: Locator.click.trial = %%-input-trial-%% +## async method: Locator.count +- returns: <[int]> + +Returns the number of elements matching given selector. + +### option: Locator.elementHandle.elementHandle = %%-input-timeout-%% + ## async method: Locator.dblclick * langs: - alias-csharp: DblClickAsync @@ -284,6 +286,19 @@ Optional event-specific initialization properties. ### option: Locator.dispatchEvent.timeout = %%-input-timeout-%% +## async method: Locator.elementHandle +- returns: <[ElementHandle]> + +Resolves given locator to the first matching DOM element. If no elements matching the query are visible, waits for them up to a given timeout. If multiple elements match the selector, throws. + +### option: Locator.elementHandle.elementHandle = %%-input-timeout-%% + + +## async method: Locator.elementHandles +- returns: <[Array]<[ElementHandle]>> + +Resolves given locator to all matching DOM elements. + ## async method: Locator.evaluate - returns: <[Serializable]> @@ -414,13 +429,10 @@ Value to set for the ``, `