From 81845d6375da09537ddf031769ce5c9d0e89eb76 Mon Sep 17 00:00:00 2001 From: caofengbin <1050430934@qq.com> Date: Fri, 30 Jun 2023 16:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E5=B1=9E=E6=80=A7=E5=88=B0=E5=8F=98=E9=87=8F=E7=9A=84?= =?UTF-8?q?=E5=89=8D=E7=AB=AFUI=E5=85=A5=E5=8F=A3=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StepShow.vue | 15 +++++++++ src/components/StepUpdate.vue | 60 ++++++++++++++++++++++++++++++++--- 2 files changed, 71 insertions(+), 4 deletions(-) diff --git a/src/components/StepShow.vue b/src/components/StepShow.vue index 9aaecc90..dfb4cd56 100644 --- a/src/components/StepShow.vue +++ b/src/components/StepShow.vue @@ -468,6 +468,21 @@ const getNotes = (text, type) => { > 获取到变量:{{ step.content }} + + 获取{{ getEleResult(step.stepType) }}控件属性 + {{ step.elements[0]['eleName'] }} + 的 {{ step.text }} 属性到变量:{{ step.content }} + 获取剪切板文本 获取到变量:{{ step.content }} diff --git a/src/components/StepUpdate.vue b/src/components/StepUpdate.vue index 626dcb32..dec7b4b7 100644 --- a/src/components/StepUpdate.vue +++ b/src/components/StepUpdate.vue @@ -553,6 +553,10 @@ const androidOptions = ref([ value: 'clear', label: '清空输入框', }, + { + value: 'obtainElementAttr', + label: '获取控件属性', + }, { value: 'getElementAttr', label: '验证控件属性', @@ -711,6 +715,10 @@ const androidOptions = ref([ value: 'closePocoDriver', label: '关闭PocoDriver', }, + { + value: 'obtainPocoElementAttr', + label: '获取控件属性', + }, { value: 'getPocoElementAttr', label: '验证控件属性', @@ -959,6 +967,10 @@ const iOSOptions = ref([ value: 'clear', label: '清空输入框', }, + { + value: 'obtainElementAttr', + label: '获取控件属性', + }, { value: 'getElementAttr', label: '验证控件属性', @@ -1051,6 +1063,10 @@ const iOSOptions = ref([ value: 'closePocoDriver', label: '关闭PocoDriver', }, + { + value: 'obtainPocoElementAttr', + label: '获取控件属性', + }, { value: 'getPocoElementAttr', label: '验证控件属性', @@ -2367,7 +2383,15 @@ onMounted(() => { -
+
+ { - + + + +
-
+
+ { - + + + +