Need to check if TOC section with many child is aligned in a proper line

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?

@Madhups

Provide sample screenshot like what you are trying to achieve.

@Madhups

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


Above we can see the child pages are aligned. That we need to check whether they are aligned properly or not