UiPath studio can't interactor with shadow DOM

Hey,
Do anyone know how to get element in shadow DOM.
I saw newer version in studio above 21.4 can use UIA framwork can get shadow DOM element.
I try to upgrade to newest version 22.4, using UIA framwork, but still can’t recogize the shadow DOM element.
Can anybody share how to solve this problem. thanks.

2022-4-27: update
Newest studio can recognize the element inside shadow DOM, but if a iframe inside the shadowroot, uipath can’t recognize the elements inside the iframe.
image

@vincent.li

Can you share few examples?

Thanks

image

all elements are under shadow-root.
UiPath identify as one windows and can’t identify all specify element.
@Srini84 Hi Srini84 can you help with that.

Hello @vincent.li ,

Did you tried using the App/Web Recorder? If not make a try… It works on an anchor base method and the neural technology is capable of identifying the elements if you indicate that screen.

shadow dom is package all element, recorder is not working with it.

@Catalin_Anastasoaie

I hope everyone knows about Shadow Root and It would not generate any DOM, so obviously UiSelector would not generate any selectors for that element.

  1. Open UiPath UiExplorer
    image
  2. Click UI Frameworks
    image
  3. Click Active Accessibility
    image
  4. Click Indicate Screen and navigate where you want, now you can access all the elements as you do before.
  5. The generated selectors will look like desktop selectors, you will not get any web selector but it will work as we expect and you can modify the attribute. PFB screenshot for reference.

Regards,
Amju / Amjadh H

1 Like