File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,21 @@ export interface Locator extends LocatorSelectors {
435435 * @see {@link https://vitest.dev/guide/browser/locators#all }
436436 */
437437 all ( ) : Locator [ ]
438+ /**
439+ * Returns a locator for the nth element matching the selector.
440+ * @see {@link https://vitest.dev/guide/browser/locators#nth }
441+ */
442+ nth ( index : number ) : Locator
443+ /**
444+ * Returns a locator for the first element matching the selector.
445+ * @see {@link https://vitest.dev/guide/browser/locators#first }
446+ */
447+ first ( ) : Locator
448+ /**
449+ * Returns a locator for the last element matching the selector.
450+ * @see {@link https://vitest.dev/guide/browser/locators#last }
451+ */
452+ last ( ) : Locator
438453}
439454
440455export interface UserEventTabOptions {
You can’t perform that action at this time.
0 commit comments