diff --git a/src/components/StepShow.vue b/src/components/StepShow.vue index 21756ba..0092a10 100644 --- a/src/components/StepShow.vue +++ b/src/components/StepShow.vue @@ -402,8 +402,9 @@ const getNotes = (text, type) => { 输入法输入 {{ step.content }} - - {{ step.elements[0]['eleName'] }} + + {{ getEleResult(step.stepType) }}控件元素 + {{ step.elements[0]['eleName'] }} 输入文本(Actions) diff --git a/src/components/StepUpdate.vue b/src/components/StepUpdate.vue index 5c8b6da..56dedbe 100644 --- a/src/components/StepUpdate.vue +++ b/src/components/StepUpdate.vue @@ -292,6 +292,10 @@ const summitStep = () => { } }); }; +// 当前步骤类型,是否需要展示ByActions的 alert 提示 +const shouldShowByActionsTip = (stepType) => { + return stepType === 'sendKeysByActions' || stepType === 'webViewSendKeysByActions'; +} const getPublicStepList = () => { axios .get('/controller/publicSteps/findNameByProjectId', { @@ -618,6 +622,10 @@ const androidOptions = ref([ value: 'webViewSendKeys', label: '输入文本', }, + { + value: 'webViewSendKeysByActions', + label: '输入文本(Actions)', + }, { value: 'webViewClear', label: '清空输入框', @@ -924,6 +932,10 @@ const iOSOptions = ref([ value: 'sendKeys', label: '输入文本', }, + { + value: 'sendKeysByActions', + label: '输入文本(Actions)', + }, { value: 'swipe2', label: '拖拽控件元素', @@ -1901,7 +1913,7 @@ onMounted(() => {
{ style="margin-bottom: 10px" close-text="Get!" type="info" - title="TIPS: 需要临时变量或全局变量时,可以添加{{变量名}}的形式" - /> + > + + {
-
- - - - - - - -
-