@midscene/android 0.27.1 → 0.27.2-beta-20250825025215.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/dist/es/index.mjs +4 -3
- package/dist/lib/index.js +4 -3
- package/package.json +3 -4
package/dist/es/index.mjs
CHANGED
|
@@ -32,11 +32,12 @@ class AndroidDevice {
|
|
|
32
32
|
if ('Input' === action.name) {
|
|
33
33
|
action.paramSchema = z.object({
|
|
34
34
|
value: z.string().describe('The final that should be filled in the input box. No matter what modifications are required, just provide the final value to replace the existing input value. Giving a blank string means clear the input field.'),
|
|
35
|
-
autoDismissKeyboard: z.boolean().optional().describe('If true, the keyboard will be dismissed after the input is completed. Do not set it unless the user asks you to do so.')
|
|
35
|
+
autoDismissKeyboard: z.boolean().optional().describe('If true, the keyboard will be dismissed after the input is completed. Do not set it unless the user asks you to do so.'),
|
|
36
|
+
locate: getMidsceneLocationSchema().describe('The input field to be filled').optional()
|
|
36
37
|
});
|
|
37
|
-
action.call = async (param
|
|
38
|
+
action.call = async (param)=>{
|
|
38
39
|
var _this_options;
|
|
39
|
-
const
|
|
40
|
+
const element = param.locate;
|
|
40
41
|
if (element) {
|
|
41
42
|
await this.clearInput(element);
|
|
42
43
|
if (!param || !param.value) return;
|
package/dist/lib/index.js
CHANGED
|
@@ -79,11 +79,12 @@ class AndroidDevice {
|
|
|
79
79
|
if ('Input' === action.name) {
|
|
80
80
|
action.paramSchema = core_namespaceObject.z.object({
|
|
81
81
|
value: core_namespaceObject.z.string().describe('The final that should be filled in the input box. No matter what modifications are required, just provide the final value to replace the existing input value. Giving a blank string means clear the input field.'),
|
|
82
|
-
autoDismissKeyboard: core_namespaceObject.z.boolean().optional().describe('If true, the keyboard will be dismissed after the input is completed. Do not set it unless the user asks you to do so.')
|
|
82
|
+
autoDismissKeyboard: core_namespaceObject.z.boolean().optional().describe('If true, the keyboard will be dismissed after the input is completed. Do not set it unless the user asks you to do so.'),
|
|
83
|
+
locate: (0, core_namespaceObject.getMidsceneLocationSchema)().describe('The input field to be filled').optional()
|
|
83
84
|
});
|
|
84
|
-
action.call = async (param
|
|
85
|
+
action.call = async (param)=>{
|
|
85
86
|
var _this_options;
|
|
86
|
-
const
|
|
87
|
+
const element = param.locate;
|
|
87
88
|
if (element) {
|
|
88
89
|
await this.clearInput(element);
|
|
89
90
|
if (!param || !param.value) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/android",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2-beta-20250825025215.0",
|
|
4
4
|
"description": "Android automation library for Midscene",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Android UI automation",
|
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"appium-adb": "12.12.1",
|
|
30
|
-
"@midscene/core": "0.27.
|
|
31
|
-
"@midscene/shared": "0.27.
|
|
32
|
-
"@midscene/web": "0.27.1"
|
|
30
|
+
"@midscene/core": "0.27.2-beta-20250825025215.0",
|
|
31
|
+
"@midscene/shared": "0.27.2-beta-20250825025215.0"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@microsoft/api-extractor": "^7.52.10",
|