Read Menu from Tree Menu - Selector is taking html tag as values for name attribute


I am trying to read a menu from Tree menu in a windows application but is unable to read due to selector not found error.

Can someone please help how can I achieve this.

we can use FIND CHILDREN activity on this case and choose FIND DESCENDANTS inthe property panel of find children activity and get the output with a variable of type IEnumerable variables.

–now use a for each loop and pass the above variable as input and change the type argument as uielement
–inside the loop use a get attribute activity and pass the input as item in ELEMENT property and get the output for the attribute aaname and save the output with a string variable

Cheers @mohammedamaan

The selector is not generating aaname attribute

1 Like

If possible can I have a view in the selector wizard a screenshot
Cheers @mohammedamaan

Will this be helpful?

Can someone please help.

Instead of aaname go with name attribute.Even if you dont get your result with name attribute see in uiexplorer which attribute is giving you the required output. Go with that.

I tried doing that but it did not work. My selector is having HTML code in name tag. Is there anyway we can pass html tags in selector