فهرست منبع

fix: wait for selector option not showing on xpath selector

Ahmad Kholid 3 سال پیش
والد
کامیت
a09c2db4df

+ 5 - 2
src/components/newtab/workflow/edit/EditInteractionBase.vue

@@ -26,7 +26,7 @@
         @change="updateData({ selector: $event })"
       />
       <ui-expand
-        v-if="!hideSelector && (data.findBy || 'cssSelector') === 'cssSelector'"
+        v-if="!hideSelector"
         hide-header-icon
         header-class="flex items-center w-full focus:ring-0"
       >
@@ -38,7 +38,10 @@
           />
           Selector options
         </template>
-        <div class="mt-1">
+        <div
+          v-if="(data.findBy || 'cssSelector') === 'cssSelector'"
+          class="mt-1"
+        >
           <ui-checkbox
             v-if="!data.disableMultiple && !hideMultiple"
             :title="t('workflow.blocks.base.multiple.title')"

+ 0 - 8
src/content/blocks-handler/handler-javascript-code.js

@@ -1,13 +1,5 @@
 import { sendMessage } from '@/utils/message';
 
-/*
-setVariable(name, value);
-
-init => set variables to sessionStorage
-invoked => update the variable in the sessionStorage
-nextBlock => include the variables in payload
-*/
-
 function getAutomaScript(blockId) {
   return `
 function automaSetVariable(name, value) {