playwright-core 1.54.0-alpha-2025-06-15 → 1.54.0-alpha-2025-06-17

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.
@@ -381,6 +381,14 @@ class Frame extends import_channelOwner.ChannelOwner {
381
381
  async title() {
382
382
  return (await this._channel.title()).value;
383
383
  }
384
+ async _expect(expression, options) {
385
+ const params = { expression, ...options, isNot: !!options.isNot };
386
+ params.expectedValue = (0, import_jsHandle.serializeArgument)(options.expectedValue);
387
+ const result = await this._channel.expect(params);
388
+ if (result.received !== void 0)
389
+ result.received = (0, import_jsHandle.parseResult)(result.received);
390
+ return result;
391
+ }
384
392
  }
385
393
  function verifyLoadState(name, waitUntil) {
386
394
  if (waitUntil === "networkidle0")
@@ -25,7 +25,6 @@ __export(locator_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(locator_exports);
27
27
  var import_elementHandle = require("./elementHandle");
28
- var import_jsHandle = require("./jsHandle");
29
28
  var import_locatorGenerators = require("../utils/isomorphic/locatorGenerators");
30
29
  var import_locatorUtils = require("../utils/isomorphic/locatorUtils");
31
30
  var import_stringUtils = require("../utils/isomorphic/stringUtils");
@@ -286,12 +285,10 @@ class Locator {
286
285
  await this._frame._channel.waitForSelector({ selector: this._selector, strict: true, omitReturnValue: true, ...options, timeout: this._frame._timeout(options) });
287
286
  }
288
287
  async _expect(expression, options) {
289
- const params = { selector: this._selector, expression, ...options, isNot: !!options.isNot };
290
- params.expectedValue = (0, import_jsHandle.serializeArgument)(options.expectedValue);
291
- const result = await this._frame._channel.expect(params);
292
- if (result.received !== void 0)
293
- result.received = (0, import_jsHandle.parseResult)(result.received);
294
- return result;
288
+ return this._frame._expect(expression, {
289
+ ...options,
290
+ selector: this._selector
291
+ });
295
292
  }
296
293
  _inspect() {
297
294
  return this.toString();