2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Frame.name
|
|
|
|
---
|
|
|
|
|
|
|
|
# Frame.name() method
|
|
|
|
|
2024-03-13 14:29:59 +00:00
|
|
|
> Warning: This API is now obsolete.
|
|
|
|
>
|
|
|
|
> Use
|
|
|
|
>
|
|
|
|
> ```ts
|
|
|
|
> const element = await frame.frameElement();
|
|
|
|
> const name = await element.evaluate(frame => frame.name);
|
|
|
|
> ```
|
|
|
|
|
2023-03-30 11:54:00 +00:00
|
|
|
The frame's `name` attribute as specified in the tag.
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Frame {
|
|
|
|
name(): string;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
string
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
2022-08-10 21:34:29 +00:00
|
|
|
This value is calculated once when the frame is created, and will not update if the attribute is changed later.
|