MCPcopy Index your code
hub / github.com/microsoft/playwright-python / owner_frame

Method owner_frame

playwright/sync_api/_generated.py:1985–1995  ·  view source on GitHub ↗

ElementHandle.owner_frame Returns the frame containing the given element. Returns ------- Union[Frame, None]

(self)

Source from the content-addressed store, hash-verified

1983 return mapping.from_impl_nullable(self._impl_obj.as_element())
1984
1985 def owner_frame(self) -> typing.Optional["Frame"]:
1986 """ElementHandle.owner_frame
1987
1988 Returns the frame containing the given element.
1989
1990 Returns
1991 -------
1992 Union[Frame, None]
1993 """
1994
1995 return mapping.from_impl_nullable(self._sync(self._impl_obj.owner_frame()))
1996
1997 def content_frame(self) -> typing.Optional["Frame"]:
1998 """ElementHandle.content_frame

Calls 2

from_impl_nullableMethod · 0.80
_syncMethod · 0.45