testdriverai 7.3.36 → 7.3.38

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/sdk.js +10 -6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [7.3.38](https://github.com/testdriverai/testdriverai/compare/v7.3.37...v7.3.38) (2026-02-25)
2
+
3
+
4
+
5
+ ## [7.3.37](https://github.com/testdriverai/testdriverai/compare/v7.3.36...v7.3.37) (2026-02-24)
6
+
7
+
8
+
1
9
  ## [7.3.36](https://github.com/testdriverai/testdriverai/compare/v7.3.35...v7.3.36) (2026-02-24)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.3.36",
3
+ "version": "7.3.38",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",
package/sdk.js CHANGED
@@ -972,7 +972,7 @@ class Element {
972
972
  /**
973
973
  * Click on the element
974
974
  * @param {ClickAction} [action='click'] - Type of click action
975
- * @returns {Promise<void>}
975
+ * @returns {Promise<Element>} This element instance for chaining
976
976
  */
977
977
  async click(action = "click") {
978
978
  if (!this._found || !this.coordinates) {
@@ -1025,11 +1025,13 @@ class Element {
1025
1025
  elementData,
1026
1026
  );
1027
1027
  }
1028
+
1029
+ return this;
1028
1030
  }
1029
1031
 
1030
1032
  /**
1031
1033
  * Hover over the element
1032
- * @returns {Promise<void>}
1034
+ * @returns {Promise<Element>} This element instance for chaining
1033
1035
  */
1034
1036
  async hover() {
1035
1037
  if (!this._found || !this.coordinates) {
@@ -1066,11 +1068,13 @@ class Element {
1066
1068
  this.coordinates.y,
1067
1069
  elementData,
1068
1070
  );
1071
+
1072
+ return this;
1069
1073
  }
1070
1074
 
1071
1075
  /**
1072
1076
  * Double-click on the element
1073
- * @returns {Promise<void>}
1077
+ * @returns {Promise<Element>} This element instance for chaining
1074
1078
  */
1075
1079
  async doubleClick() {
1076
1080
  return this.click("double-click");
@@ -1078,7 +1082,7 @@ class Element {
1078
1082
 
1079
1083
  /**
1080
1084
  * Right-click on the element
1081
- * @returns {Promise<void>}
1085
+ * @returns {Promise<Element>} This element instance for chaining
1082
1086
  */
1083
1087
  async rightClick() {
1084
1088
  return this.click("right-click");
@@ -1086,7 +1090,7 @@ class Element {
1086
1090
 
1087
1091
  /**
1088
1092
  * Press mouse button down on this element
1089
- * @returns {Promise<void>}
1093
+ * @returns {Promise<Element>} This element instance for chaining
1090
1094
  */
1091
1095
  async mouseDown() {
1092
1096
  return this.click("mouseDown");
@@ -1094,7 +1098,7 @@ class Element {
1094
1098
 
1095
1099
  /**
1096
1100
  * Release mouse button on this element
1097
- * @returns {Promise<void>}
1101
+ * @returns {Promise<Element>} This element instance for chaining
1098
1102
  */
1099
1103
  async mouseUp() {
1100
1104
  return this.click("mouseUp");