{ "schema": "freecad-web-manual/scenario/v1", "chapter": "ch02", "workflow": "part-task-panels", "title": "Part 任务面板:Shape Builder、Fillet、Chamfer、Boolean 与 Check Geometry", "actions": [ { "type": "goto", "url": "/project.html?workbench=Part" }, { "type": "waitFor", "selector": "select[aria-label=\"Workbench\"]" }, { "type": "wait", "ms": 1000 }, { "type": "click", "selector": "nav[aria-label=\"Application menus\"] details", "hasText": "File", "target": ":scope > summary" }, { "type": "click", "role": "button", "name": "新建 Document", "exact": true }, { "type": "wait", "ms": 2000 }, { "type": "eval", "script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false" }, { "type": "click", "selector": "button[data-command=\"Part_Box\"] >> visible=true" }, { "type": "wait", "ms": 1400 }, { "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" }, { "type": "wait", "ms": 300 }, { "type": "fill", "selector": "input[aria-label=\"Length\"]", "value": 80 }, { "type": "fill", "selector": "input[aria-label=\"Width\"]", "value": 60 }, { "type": "fill", "selector": "input[aria-label=\"Height\"]", "value": 20 }, { "type": "click", "role": "button", "name": "应用尺寸并重算", "exact": true }, { "type": "wait", "ms": 1200 }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "click", "selector": "button[data-command=\"Part_Builder\"] >> visible=true" }, { "type": "waitFor", "selector": "section[aria-label=\"Shape builder\"]" }, { "type": "wait", "ms": 500 }, { "type": "assertVisible", "selector": "section[aria-label=\"Shape builder\"]" }, { "type": "shot", "name": "01-shape-builder", "selector": "section[aria-label=\"Shape builder\"]" }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" }, { "type": "wait", "ms": 300 }, { "type": "click", "selector": "button[data-command=\"Part_Fillet\"] >> visible=true" }, { "type": "waitFor", "selector": "section[aria-label=\"Fillet task\"]" }, { "type": "wait", "ms": 600 }, { "type": "assertAnyText", "selector": "section[aria-label=\"Fillet task\"]", "contains": "Fillet" }, { "type": "shot", "name": "02-fillet", "selector": "section[aria-label=\"Fillet task\"]" }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" }, { "type": "wait", "ms": 300 }, { "type": "click", "selector": "button[data-command=\"Part_Chamfer\"] >> visible=true" }, { "type": "waitFor", "selector": "section[aria-label=\"Chamfer task\"]" }, { "type": "wait", "ms": 600 }, { "type": "assertAnyText", "selector": "section[aria-label=\"Chamfer task\"]", "contains": "Chamfer" }, { "type": "shot", "name": "03-chamfer", "selector": "section[aria-label=\"Chamfer task\"]" }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "click", "selector": "button[data-command=\"Part_Boolean\"] >> visible=true" }, { "type": "waitFor", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")" }, { "type": "wait", "ms": 500 }, { "type": "assertAnyText", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")", "contains": "Base" }, { "type": "shot", "name": "04-boolean", "selector": "fieldset.primitive-editor:has-text(\"布尔运算\")" }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "click", "selector": ".fc-tree-text", "hasText": "Cube" }, { "type": "wait", "ms": 300 }, { "type": "click", "selector": "button[data-command=\"Part_CheckGeometry\"] >> visible=true" }, { "type": "waitFor", "selector": "section[aria-label=\"Check geometry task\"]" }, { "type": "wait", "ms": 500 }, { "type": "click", "role": "button", "name": "Check shapes", "exact": true }, { "type": "wait", "ms": 2000 }, { "type": "assertAnyText", "selector": "section[aria-label=\"Check geometry task\"]", "contains": "Valid" }, { "type": "shot", "name": "05-check-geometry", "selector": "section[aria-label=\"Check geometry task\"]" }, { "type": "click", "role": "button", "name": "Close task / Cancel", "exact": true }, { "type": "wait", "ms": 500 }, { "type": "save" } ] }