patchright-core 1.55.0 → 1.55.1

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.
@@ -259,7 +259,7 @@ class FrameSelectors {
259
259
  depth: -1
260
260
  });
261
261
  elementToCheck.backendNodeId = resolvedElement.node.backendNodeId;
262
- elementToCheck.nodePosition = this._findElementPositionInDomTree(elementToCheck, describedScope.node, describedScope.node, "");
262
+ elementToCheck.nodePosition = this._findElementPositionInDomTree(elementToCheck, describedScope.node, context, "");
263
263
  elements.push(elementToCheck);
264
264
  }
265
265
  }
@@ -295,7 +295,7 @@ class FrameSelectors {
295
295
  if (queryingElement.shadowRoots && Array.isArray(queryingElement.shadowRoots)) {
296
296
  for (const shadowRoot of queryingElement.shadowRoots) {
297
297
  if (shadowRoot.shadowRootType === "closed" && shadowRoot.backendNodeId) {
298
- const shadowRootHandle = new dom.ElementHandle(documentScope, shadowRoot.backendNodeId);
298
+ const shadowRootHandle = new import_dom.ElementHandle(documentScope, shadowRoot.backendNodeId);
299
299
  const childIndex = this._findElementPositionInDomTree(element, shadowRootHandle, documentScope, currentIndex);
300
300
  if (childIndex !== null) return childIndex;
301
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchright-core",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",