Files
FreeCADWasmDev/web/manual/scenarios/ch05-assembly.json

126 lines
2.6 KiB
JSON

{
"schema": "freecad-web-manual/scenario/v1",
"chapter": "ch05",
"workflow": "assembly-create-insert",
"title": "Assembly 创建装配与插入链接",
"actions": [
{
"type": "goto",
"url": "/project.html"
},
{
"type": "wait",
"ms": 1200
},
{
"type": "seed",
"file": "/home/mes123456/FreeCADWasmDev/working/FreeCAD/web/tools/line-course/checkpoints/E03.FCStd",
"name": "manual-assembly-source.FCStd"
},
{
"type": "goto",
"url": "/workbench.html?module=Assembly&command=Assembly_CreateAssembly"
},
{
"type": "wait",
"ms": 3500
},
{
"type": "fill",
"selector": "input[aria-label=\"Assembly document name\"]",
"value": "ManualAssembly"
},
{
"type": "fill",
"selector": "input[aria-label=\"Assembly label\"]",
"value": "手动装配"
},
{
"type": "shot",
"name": "01-create-assembly",
"selector": "fieldset:has-text(\"Assembly document\")"
},
{
"type": "click",
"role": "button",
"name": "Create",
"exact": true
},
{
"type": "wait",
"ms": 2500
},
{
"type": "waitOptions",
"selector": "select[aria-label=\"Insert link source file\"]",
"min": 2
},
{
"type": "select",
"selector": "select[aria-label=\"Insert link source file\"]",
"label": "manual-assembly-source.FCStd"
},
{
"type": "click",
"role": "button",
"name": "Load source",
"exact": true
},
{
"type": "waitOptions",
"selector": "select[aria-label=\"Insert link source object\"]",
"min": 2
},
{
"type": "selectIndex",
"selector": "select[aria-label=\"Insert link source object\"]",
"index": 1
},
{
"type": "click",
"role": "button",
"name": "Insert",
"exact": true
},
{
"type": "wait",
"ms": 800
},
{
"type": "selectIndex",
"selector": "select[aria-label=\"Insert link source object\"]",
"index": 2
},
{
"type": "click",
"role": "button",
"name": "Insert",
"exact": true
},
{
"type": "wait",
"ms": 1000
},
{
"type": "shot",
"name": "02-insert-links",
"selector": "[aria-label=\"Insert assembly link\"]"
},
{
"type": "click",
"role": "button",
"name": "Accept",
"exact": true
},
{
"type": "wait",
"ms": 2000
},
{
"type": "shot",
"name": "03-assembly-result",
"fullPage": true
}
]
}