testdriverai 7.3.36 → 7.3.37
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/sdk.js +10 -6
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
1101
|
+
* @returns {Promise<Element>} This element instance for chaining
|
|
1098
1102
|
*/
|
|
1099
1103
|
async mouseUp() {
|
|
1100
1104
|
return this.click("mouseUp");
|