Find Children activity produces incorrect selector if children are in a list <ul><li>

Encountered this error:

Whenever i do a Find Children activity on a webpage and filter for uielements found in a list (i.e. the elements i want to find are in <li> tags), the selector generated by the activity for the 1st element is always incorrect.

For example, i set up this webpage, https://www.w3spaces-preview.com/findchildrentest/index.html
And tried to filter for all the <a> elements using the Find Children activity.

The selectors generated in the Find Children activity output are:
<html app=‘chrome.exe’ title=‘Blank template’ /><webctrl tag=‘A’ />
<html app=‘chrome.exe’ title=‘Blank template’ /><webctrl aaname=‘Tea’ tag=‘A’ />
<html app=‘chrome.exe’ title=‘Blank template’ /><webctrl aaname=‘Milk’ tag=‘A’ />

The selector of the link in the first li is not generated correctly - the aaname is missing.
I think the issue lies with the li tags and not the a tags cos even for a list without links, the selector generated for the first li item is different.

This happens to all the webpages i tried my automation on.
I dunno, i think it’s a bug.

The properties of my FIND CHILDREN activity:
image

You can find the studio files here:

Hope someone can enlighten me on this. Thanks!

have a look here:

grafik
grafik

we let point the selector to the OL and filter for the A elements (links)

Result:
grafik
grafik

similar we can do the UL / LI list

grafik

grafik

Hi,

Because it can be identified the element without aaname attribute. Selector string has jsut minimum attributes.

Regards,

1 Like

Fully agreed to @Yoichi’ statement following also can be added. aaname can be different for the browsers

similar to your modelling:
grafik

we get:
grafik

But as we are more interested on other attribute values the minimal selectors would not harm or block us

1 Like

I see… I was trying to pick out keywords in the selectors in my automation. so i should use something more specific like get innertext. thanks @ppr and @Yoichi for the explanation!

thanks for your feedback. May we ask you to close the topic by:
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.