playwright-core 1.54.0-alpha-2025-06-24 → 1.54.0-alpha-2025-06-25

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.
@@ -10,7 +10,7 @@ This project incorporates components from the projects listed below. The origina
10
10
  - buffer-crc32@0.2.13 (https://github.com/brianloveswords/buffer-crc32)
11
11
  - codemirror@5.65.18 (https://github.com/codemirror/CodeMirror)
12
12
  - colors@1.4.0 (https://github.com/Marak/colors.js)
13
- - commander@8.3.0 (https://github.com/tj/commander.js)
13
+ - commander@13.1.0 (https://github.com/tj/commander.js)
14
14
  - concat-map@0.0.1 (https://github.com/substack/node-concat-map)
15
15
  - debug@4.3.4 (https://github.com/debug-js/debug)
16
16
  - debug@4.4.0 (https://github.com/debug-js/debug)
@@ -331,7 +331,7 @@ THE SOFTWARE.
331
331
  =========================================
332
332
  END OF colors@1.4.0 AND INFORMATION
333
333
 
334
- %% commander@8.3.0 NOTICES AND INFORMATION BEGIN HERE
334
+ %% commander@13.1.0 NOTICES AND INFORMATION BEGIN HERE
335
335
  =========================================
336
336
  (The MIT License)
337
337
 
@@ -356,7 +356,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
356
356
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
357
357
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
358
358
  =========================================
359
- END OF commander@8.3.0 AND INFORMATION
359
+ END OF commander@13.1.0 AND INFORMATION
360
360
 
361
361
  %% concat-map@0.0.1 NOTICES AND INFORMATION BEGIN HERE
362
362
  =========================================
package/browsers.json CHANGED
@@ -15,15 +15,15 @@
15
15
  },
16
16
  {
17
17
  "name": "chromium-tip-of-tree",
18
- "revision": "1342",
18
+ "revision": "1343",
19
19
  "installByDefault": false,
20
- "browserVersion": "139.0.7248.0"
20
+ "browserVersion": "139.0.7258.0"
21
21
  },
22
22
  {
23
23
  "name": "chromium-tip-of-tree-headless-shell",
24
- "revision": "1342",
24
+ "revision": "1343",
25
25
  "installByDefault": false,
26
- "browserVersion": "139.0.7248.0"
26
+ "browserVersion": "139.0.7258.0"
27
27
  },
28
28
  {
29
29
  "name": "firefox",
@@ -58,7 +58,7 @@ const kExternalPlaywrightTestCommands = [
58
58
  ];
59
59
  function addExternalPlaywrightTestCommands() {
60
60
  for (const [command, description] of kExternalPlaywrightTestCommands) {
61
- const playwrightTest = import_program.program.command(command).allowUnknownOption(true);
61
+ const playwrightTest = import_program.program.command(command).allowUnknownOption(true).allowExcessArguments(true);
62
62
  playwrightTest.description(`${description} Available in @playwright/test package.`);
63
63
  playwrightTest.action(async () => {
64
64
  printPlaywrightTestError(command);
@@ -52,10 +52,6 @@ class ElementHandle extends import_jsHandle.JSHandle {
52
52
  async contentFrame() {
53
53
  return import_frame.Frame.fromNullable((await this._elementChannel.contentFrame()).frame);
54
54
  }
55
- async _generateLocatorString() {
56
- const value = (await this._elementChannel.generateLocatorString()).value;
57
- return value === void 0 ? null : value;
58
- }
59
55
  async getAttribute(name) {
60
56
  const value = (await this._elementChannel.getAttribute({ name })).value;
61
57
  return value === void 0 ? null : value;
@@ -193,7 +193,8 @@ class Locator {
193
193
  return await this._frame._queryCount(this._selector);
194
194
  }
195
195
  async _generateLocatorString() {
196
- return await this._withElement((h) => h._generateLocatorString(), { title: "Generate locator string", internal: true });
196
+ const { value } = await this._frame._channel.generateLocatorString({ selector: this._selector });
197
+ return value === void 0 ? null : value;
197
198
  }
198
199
  async getAttribute(name, options) {
199
200
  return await this._frame.getAttribute(this._selector, name, { strict: true, ...options });