We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug new tab打开标签页失败之后, 无法执行background js脚本
To Reproduce workflow源码, 直接运行就出错
{"extVersion":"1.27.2","name":"test","icon":"riGlobalLine","table":[],"version":"1.27.2","drawflow":{"nodes":[{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"O_ennv_4ejHWw0NhD3gBP-output-1","position":"right","x":196,"y":28,"width":16,"height":16}]},"computedPosition":{"x":96,"y":97,"z":0},"selected":false,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","type":"manual","interval":60,"delay":5,"date":"","time":"00:00","url":"","shortcut":"","activeInInput":false,"isUrlRegex":false,"days":[],"contextMenuName":"","contextTypes":[],"parameters":[],"preferParamsInTab":false,"observeElement":{"selector":"","baseSelector":"","matchPattern":"","targetOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false},"baseElOptions":{"subtree":false,"childList":true,"attributes":false,"attributeFilter":[],"characterData":false}}},"events":{},"position":{"x":96,"y":97},"id":"O_ennv_4ejHWw0NhD3gBP","label":"trigger"},{"type":"BlockBasic","dimensions":{"width":192,"height":96},"handleBounds":{"source":[{"id":"hxr6ddp-output-1","position":"right","x":196.00003756009616,"y":40,"width":16,"height":16},{"id":"hxr6ddp-output-fallback","position":"right","x":196.00003756009616,"y":61.99998121995192,"width":16,"height":16}],"target":[{"id":"hxr6ddp-input-1","position":"left","x":-20,"y":40,"width":16,"height":16}]},"computedPosition":{"x":388,"y":97,"z":0},"selected":false,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","url":"https://www.bai1du.com","userAgent":"","active":true,"inGroup":false,"waitTabLoaded":true,"updatePrevTab":false,"customUserAgent":false,"settings":{"blockTimeout":0,"debugMode":false},"onError":{"retry":false,"enable":true,"retryTimes":1,"retryInterval":2,"toDo":"fallback","insertData":false,"dataToInsert":[]}},"events":{},"position":{"x":388,"y":97},"label":"new-tab","id":"hxr6ddp"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"ekcu6f3-output-1","position":"right","x":195.99994365985577,"y":27.99999530498798,"width":16,"height":16}],"target":[{"id":"ekcu6f3-input-1","position":"left","x":-20,"y":27.99999530498798,"width":16,"height":16}]},"computedPosition":{"x":680,"y":36,"z":0},"selected":false,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"","iconUrl":"","imageUrl":"","title":"success"},"events":{},"position":{"x":680,"y":36},"label":"notification","id":"ekcu6f3"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"y7gvuoi-output-1","position":"right","x":195.99994365985577,"y":27.999971829927883,"width":16,"height":16}],"target":[{"id":"y7gvuoi-input-1","position":"left","x":-20,"y":27.999971829927883,"width":16,"height":16}]},"computedPosition":{"x":972,"y":158,"z":0},"selected":false,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","message":"","iconUrl":"","imageUrl":"","title":"error"},"events":{},"position":{"x":972,"y":158},"label":"notification","id":"y7gvuoi"},{"type":"BlockBasic","dimensions":{"width":192,"height":72},"handleBounds":{"source":[{"id":"r7rfwgn-output-1","position":"right","x":195.99994365985577,"y":28.000018780048077,"width":16,"height":16}],"target":[{"id":"r7rfwgn-input-1","position":"left","x":-20,"y":28.000018780048077,"width":16,"height":16}]},"computedPosition":{"x":680,"y":158,"z":0},"selected":false,"dragging":false,"resizing":false,"initialized":true,"data":{"disableBlock":false,"description":"","timeout":20000,"context":"background","code":"console.log(\"Hello world!\");\nautomaNextBlock()","preloadScripts":[],"everyNewTab":false,"runBeforeLoad":false},"events":{},"position":{"x":680,"y":158},"label":"javascript-code","id":"r7rfwgn"}],"edges":[{"id":"vueflow__edge-O_ennv_4ejHWw0NhD3gBPO_ennv_4ejHWw0NhD3gBP-output-1-hxr6ddphxr6ddp-input-1","source":"O_ennv_4ejHWw0NhD3gBP","sourceHandle":"O_ennv_4ejHWw0NhD3gBP-output-1","target":"hxr6ddp","targetHandle":"hxr6ddp-input-1","updatable":true,"type":"custom","selectable":true,"markerEnd":"arrowclosed","data":{},"events":{}},{"id":"vueflow__edge-r7rfwgnr7rfwgn-output-1-y7gvuoiy7gvuoi-input-1","source":"r7rfwgn","sourceHandle":"r7rfwgn-output-1","target":"y7gvuoi","targetHandle":"y7gvuoi-input-1","updatable":true,"type":"custom","selectable":true,"markerEnd":"arrowclosed","data":{},"events":{}},{"id":"vueflow__edge-hxr6ddphxr6ddp-output-1-ekcu6f3ekcu6f3-input-1","source":"hxr6ddp","sourceHandle":"hxr6ddp-output-1","target":"ekcu6f3","targetHandle":"ekcu6f3-input-1","updatable":true,"type":"custom","selectable":true,"markerEnd":"arrowclosed","data":{},"events":{}},{"id":"vueflow__edge-hxr6ddphxr6ddp-output-fallback-r7rfwgnr7rfwgn-input-1","source":"hxr6ddp","sourceHandle":"hxr6ddp-output-fallback","target":"r7rfwgn","targetHandle":"r7rfwgn-input-1","class":"source-hxr6ddp-output-fallback target-r7rfwgn-input-1","updatable":true,"type":"custom","selectable":true,"markerEnd":"arrowclosed","data":{},"events":{}}],"position":[-55.08120531154225,356.53285665645217],"zoom":1.2929860401770512},"settings":{"publicId":"","blockDelay":0,"saveLog":true,"debugMode":false,"restartTimes":3,"notification":true,"execContext":"popup","reuseLastState":false,"inputAutocomplete":true,"onError":"stop-workflow","executedBlockOnWeb":false,"insertDefaultColumn":false,"defaultColumnName":"column"},"globalData":"{\n\t\"key\": \"value\"\n}","description":"","includedWorkflows":{}}
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
fix: JS block not working in background execution (#1134)
405c25f
fix: Error executing a JavaScript block when the Execution Context is…
cf19d28
… "Background" (#1155)(#1134)
I found that if you forget to allow Automa to have access to a site, then you get this same error.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
new tab打开标签页失败之后, 无法执行background js脚本
To Reproduce
workflow源码, 直接运行就出错
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: