mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: remove skip
and add more frame.name()
instructions (#12085)
This commit is contained in:
parent
0203b4533d
commit
1a05d37cf2
@ -10,7 +10,7 @@ sidebar_label: Frame.name
|
|||||||
>
|
>
|
||||||
> ```ts
|
> ```ts
|
||||||
> const element = await frame.frameElement();
|
> const element = await frame.frameElement();
|
||||||
> const name = await element.evaluate(frame => frame.name);
|
> const nameOrId = await element.evaluate(frame => frame.name ?? frame.id);
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
The frame's `name` attribute as specified in the tag.
|
The frame's `name` attribute as specified in the tag.
|
||||||
|
@ -765,7 +765,7 @@ export abstract class Frame extends EventEmitter<FrameEvents> {
|
|||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* const element = await frame.frameElement();
|
* const element = await frame.frameElement();
|
||||||
* const name = await element.evaluate(frame => frame.name);
|
* const nameOrId = await element.evaluate(frame => frame.name ?? frame.id);
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
name(): string {
|
name(): string {
|
||||||
|
@ -777,7 +777,7 @@ describe('Launcher specs', function () {
|
|||||||
await close();
|
await close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
it.skip('should be able to reconnect to a disconnected browser', async () => {
|
it('should be able to reconnect to a disconnected browser', async () => {
|
||||||
const {puppeteer, server, browser, close} = await launch({});
|
const {puppeteer, server, browser, close} = await launch({});
|
||||||
try {
|
try {
|
||||||
const browserWSEndpoint = browser.wsEndpoint();
|
const browserWSEndpoint = browser.wsEndpoint();
|
||||||
|
Loading…
Reference in New Issue
Block a user