Playwright · Method
locator.last
locator.last returns a locator for the last element that matches another locator. Use it when you need the final match in a set.
Last updated
- Since
- v1.14
Syntax
locator.lastIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Locatorlocator.firstlocator.nthlocator.all