@testmuai/playwright-bindings 0.1.58-beta.1 → 0.1.58

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.
@@ -1 +1 @@
1
- {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../../src/v4/helpers/textualAnalyzer/evaluate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GACtD,OAAO,CAAC,OAAO,CAAC,CAGlB"}
1
+ {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../../src/v4/helpers/textualAnalyzer/evaluate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,eAAe,CACnC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GACtD,OAAO,CAAC,OAAO,CAAC,CAOlB"}
@@ -1,5 +1,9 @@
1
1
  export async function evaluateWrapped(page, wrappedJs, handles) {
2
2
  const fn = new Function('els', `return (${wrappedJs})(els);`);
3
- return page.evaluate(fn, handles);
3
+ // A handle belongs to its frame's context: an element inside an iframe is
4
+ // evaluated in that frame, not the page's main frame.
5
+ const first = handles[0];
6
+ const owner = first ? await first.ownerFrame() : null;
7
+ return (owner ?? page).evaluate(fn, handles);
4
8
  }
5
9
  //# sourceMappingURL=evaluate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"evaluate.js","sourceRoot":"","sources":["../../../../src/v4/helpers/textualAnalyzer/evaluate.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAU,EAAE,SAAiB,EAAE,OAAwB;IAEvD,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,WAAW,SAAS,SAAS,CAA8B,CAAC;IAC3F,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAoB,CAAC,CAAC;AACjD,CAAC"}
1
+ {"version":3,"file":"evaluate.js","sourceRoot":"","sources":["../../../../src/v4/helpers/textualAnalyzer/evaluate.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAU,EAAE,SAAiB,EAAE,OAAwB;IAEvD,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,WAAW,SAAS,SAAS,CAA8B,CAAC;IAC3F,0EAA0E;IAC1E,sDAAsD;IACtD,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAoB,CAAC,CAAC;AAC5D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testmuai/playwright-bindings",
3
- "version": "0.1.58-beta.1",
3
+ "version": "0.1.58",
4
4
  "description": "Testmu binding for Playwright — thin runtime for LambdaTest exports",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",