mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-10-30 14:46:24 +00:00
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
710 B
710 B
sidebar_label
| sidebar_label |
|---|
| Locator.race |
Locator.race() method
Creates a race between multiple locators trying to locate elements in parallel but ensures that only a single element receives the action.
Signature
class Locator {
static race<Locators extends readonly unknown[] | []>(
locators: Locators,
): Locator<AwaitedLocator<Locators[number]>>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
locators |
Locators |
Returns:
Locator<AwaitedLocator<Locators[number]>>