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

Method frame

playwright/_impl/_page.py:391–398  ·  view source on GitHub ↗
(self, name: str = None, url: URLMatch = None)

Source from the content-addressed store, hash-verified

389 return self._main_frame
390
391 def frame(self, name: str = None, url: URLMatch = None) -> Optional[Frame]:
392 for frame in self._frames:
393 if name and frame.name == name:
394 return frame
395 if url and url_matches(self._browser_context._base_url, frame.url, url):
396 return frame
397
398 return None
399
400 @property
401 def frames(self) -> List[Frame]:

Calls 1

url_matchesFunction · 0.90