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

Method last

playwright/_impl/_locator.py:336–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334
335 @property
336 def last(self) -> "Locator":
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}")

Callers

nothing calls this directly

Calls 1

LocatorClass · 0.70

Tested by

no test coverage detected