Page.frame Returns frame matching the specified criteria. Either `name` or `url` must be specified. **Usage** ```py frame = page.frame(name=\"frame-name\") ``` Parameters ---------- name : Union[str, None] Frame name spe
(
self,
name: typing.Optional[str] = None,
*,
url: typing.Optional[
typing.Union[str, typing.Pattern[str], typing.Callable[[str], bool]]
] = None,
)
| 8748 | return mapping.from_impl_nullable(await self._impl_obj.opener()) |
| 8749 | |
| 8750 | def frame( |
| 8751 | self, |
| 8752 | name: typing.Optional[str] = None, |
| 8753 | *, |
| 8754 | url: typing.Optional[ |
| 8755 | typing.Union[str, typing.Pattern[str], typing.Callable[[str], bool]] |
| 8756 | ] = None, |
| 8757 | ) -> typing.Optional["Frame"]: |
| 8758 | """Page.frame |
| 8759 | |
| 8760 | Returns frame matching the specified criteria. Either `name` or `url` must be specified. |
| 8761 | |
| 8762 | **Usage** |
| 8763 | |
| 8764 | ```py |
| 8765 | frame = page.frame(name=\"frame-name\") |
| 8766 | ``` |
| 8767 | |
| 8768 | Parameters |
| 8769 | ---------- |
| 8770 | name : Union[str, None] |
| 8771 | Frame name specified in the `iframe`'s `name` attribute. Optional. |
| 8772 | url : Union[Callable[[str], bool], Pattern[str], str, None] |
| 8773 | A glob pattern, regex pattern or predicate receiving frame's `url` as a [URL] object. Optional. |
| 8774 | |
| 8775 | Returns |
| 8776 | ------- |
| 8777 | Union[Frame, None] |
| 8778 | """ |
| 8779 | |
| 8780 | return mapping.from_impl_nullable( |
| 8781 | self._impl_obj.frame(name=name, url=self._wrap_handler(url)) |
| 8782 | ) |
| 8783 | |
| 8784 | def set_default_navigation_timeout( |
| 8785 | self, timeout: typing.Union[float, datetime.timedelta] |
nothing calls this directly
no test coverage detected