@ceki/sdk 1.11.2 → 1.12.0
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/README.md +1 -1
- package/dist/cli.js +4 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -794,18 +794,11 @@ var Browser = class _Browser {
|
|
|
794
794
|
params: { type: "mouseReleased", x: px, y: py, button: "left", clickCount: 1 }
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
await new Promise((r) => setTimeout(r, delay));
|
|
802
|
-
}
|
|
803
|
-
}
|
|
797
|
+
}
|
|
798
|
+
const human = this._humanizer ? ["natural", "careful"].includes(this._humanizer.profile.name) ? this._humanizer.profile.name : "natural" : null;
|
|
799
|
+
await this.send({ method: "Ceki.typeText", params: { text, human } });
|
|
800
|
+
if (this._humanizer) {
|
|
804
801
|
await this._humanizer.after("type");
|
|
805
|
-
} else {
|
|
806
|
-
for (const char of text) {
|
|
807
|
-
await this._sendKeystroke(char);
|
|
808
|
-
}
|
|
809
802
|
}
|
|
810
803
|
}
|
|
811
804
|
async scroll(opts) {
|