Skip to content

Commit 291b6d0

Browse files
authored
docs: use frameByUrl to find frame by URL (#5451)
1 parent 529e398 commit 291b6d0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/src/api/class-page.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,14 +1274,32 @@ frame = page.frame(url=r".*domain.*")
12741274
```
12751275

12761276
### param: Page.frame.frameSelector
1277-
* langs: java, js
1277+
* langs: js
12781278
- `frameSelector` <[string]|[Object]>
12791279
- `name` <[string]> Frame name specified in the `iframe`'s `name` attribute. Optional.
12801280
- `url` <[string]|[RegExp]|[function]\([URL]\):[boolean]> A glob pattern, regex pattern or predicate receiving
12811281
frame's `url` as a [URL] object. Optional.
12821282

12831283
Frame name or other frame lookup options.
12841284

1285+
### param: Page.frame.name
1286+
* langs: csharp, java
1287+
- `name` <[string]>
1288+
1289+
Frame name specified in the `iframe`'s `name` attribute.
1290+
1291+
## method: Page.frameByUrl
1292+
* langs: csharp, java
1293+
- returns: <[null]|[Frame]>
1294+
1295+
Returns frame with matching URL.
1296+
1297+
### param: Page.frameByUrl.url
1298+
* langs: csharp, java
1299+
- `url` <[string]|[RegExp]|[function]\([URL]\):[boolean]>
1300+
1301+
A glob pattern, regex pattern or predicate receiving frame's `url` as a [URL] object.
1302+
12851303
## method: Page.frames
12861304
- returns: <[Array]<[Frame]>>
12871305

0 commit comments

Comments
 (0)