@vitest/browser 3.0.0-beta.1 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/context.d.ts CHANGED
@@ -302,6 +302,23 @@ interface LocatorSelectors {
302
302
  }
303
303
 
304
304
  export interface Locator extends LocatorSelectors {
305
+ /**
306
+ * Selector string that will be used to locate the element by the browser provider.
307
+ * You can use this string in the commands API:
308
+ * ```ts
309
+ * // playwright
310
+ * function test({ selector, iframe }) {
311
+ * await iframe.locator(selector).click()
312
+ * }
313
+ * // webdriverio
314
+ * function test({ selector, browser }) {
315
+ * await browser.$(selector).click()
316
+ * }
317
+ * ```
318
+ * @see {@link https://vitest.dev/guide/browser/locators#selector}
319
+ */
320
+ readonly selector: string
321
+
305
322
  /**
306
323
  * Click on an element. You can use the options to set the cursor position.
307
324
  * @see {@link https://vitest.dev/guide/browser/interactivity-api#userevent-click}
@@ -13,7 +13,7 @@
13
13
  ]
14
14
  },
15
15
  "tester/tester.html": {
16
- "file": "__vitest_browser__/tester-D_NUSQO8.js",
16
+ "file": "__vitest_browser__/tester-BdwA4c5U.js",
17
17
  "name": "tester",
18
18
  "src": "tester/tester.html",
19
19
  "isEntry": true,