mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: add an internal page.locatorRace (#10512)
This commit is contained in:
parent
fa412292be
commit
56a97dd2fb
@ -835,6 +835,15 @@ export class Page extends EventEmitter {
|
|||||||
return Locator.create(this, selector);
|
return Locator.create(this, selector);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A shortcut for {@link Locator.race} that does not require static imports.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
locatorRace(locators: Locator[]): Locator {
|
||||||
|
return Locator.race(locators);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs `document.querySelector` within the page. If no element matches the
|
* Runs `document.querySelector` within the page. If no element matches the
|
||||||
* selector, the return value resolves to `null`.
|
* selector, the return value resolves to `null`.
|
||||||
|
@ -3375,7 +3375,7 @@
|
|||||||
"testIdPattern": "[page.spec] Page Page.title should return the page title",
|
"testIdPattern": "[page.spec] Page Page.title should return the page title",
|
||||||
"platforms": ["linux", "win32"],
|
"platforms": ["linux", "win32"],
|
||||||
"parameters": ["firefox", "webDriverBiDi"],
|
"parameters": ["firefox", "webDriverBiDi"],
|
||||||
"expectations": ["PASS", "FAIL"]
|
"expectations": ["FAIL", "PASS"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"testIdPattern": "[page.spec] Page Page.waitForNetworkIdle should work",
|
"testIdPattern": "[page.spec] Page Page.waitForNetworkIdle should work",
|
||||||
|
Loading…
Reference in New Issue
Block a user