Hi Team, is there any way in UiPath we can find that in TOC(Table of content) section all parent and child sections ae aligned properly or not?
Provide sample screenshot like what you are trying to achieve.
Use Find Children activity
Target your TOC container.
Filter: “*”
Scope: FIND_DESCENDANTS and Output save it in a variable.
Then loop this in a for each activity.
Use Get Attribute → “position”
Attribute: “position”
Save output to “pos” and get below details and compare
- pos.X → left alignment
- pos.Y → vertical position
- pos.Width
- pos.Height
Then use assign and comapre it like (CurrentPosX-PrevPosX) and decide how mcuh difference is required as per your requirement
