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 {
435
435
* @see {@link https://vitest.dev/guide/browser/locators#all }
436
436
*/
437
437
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
438
453
}
439
454
440
455
export interface UserEventTabOptions {
You can’t perform that action at this time.
0 commit comments