Get parentID

Hi, community!

I have experiencing some troubles when extracting an html table because its ID is always changing. So, what I have done currently is get the Ancestor of a child element which is never going to change. But from this, how can I get the Ancestor ID (parentID) if this Get Ancestor returns an UI.Element and not an HTML element so I cannot get attributes of this parent. How would be the way to achieve this? Thanks!

Hi,

You can inject JS into the workflow if it is unable to fetch the ID of the table and perform the task.

Here is the link on injecting js in the workflow.

Let me know if that doesn’t work.

Thanks
Manoj

Hey @Jaime_Escobar

You can Use Get Attribute Activity and in use parentid attribute and in Element property pass your Get Ancestor Activity Output.

Regards…!!
Aksh