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

Method nth

playwright/_impl/_locator.py:339–340  ·  view source on GitHub ↗
(self, index: int)

Source from the content-addressed store, hash-verified

337 return Locator(self._frame, f"{self._selector} >> nth=-1")
338
339 def nth(self, index: int) -> "Locator":
340 return Locator(self._frame, f"{self._selector} >> nth={index}")
341
342 @property
343 def content_frame(self) -> "FrameLocator":

Calls 1

LocatorClass · 0.70