@checksum-ai/runtime 1.1.54-beta → 1.1.55-beta

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/checksumlib.js CHANGED
@@ -33282,11 +33282,11 @@
33282
33282
  }, "getSelection");
33283
33283
  let selection = getSelection();
33284
33284
  if (name?.length && exact && !this.getLocatorBase(element).locator(selection.selector).elements.includes(element)) {
33285
- props.find((p) => p[0] === "name")[1] = escapeForAttributeSelector(
33286
- name,
33287
- false
33288
- );
33289
- selection = getSelection();
33285
+ const nameProp = props.find((p) => p[0] === "name");
33286
+ if (nameProp) {
33287
+ nameProp[1] = escapeForAttributeSelector(name, false);
33288
+ selection = getSelection();
33289
+ }
33290
33290
  }
33291
33291
  return selection;
33292
33292
  } catch (error) {