Commodore
Commodore
642 views

TruClient support of Shadow DOM?

Jump to solution

Hello,

I need to script an application that makes use of shadow DOM. As I found out: Truclient cannot identify elements that are part of the Shadow DOM. I am using VUgen 12.57 TruClient with Chromium browser. My questions:

Are there work arounds that will allow for using TruClient and access Shadow DOM elements? I could not find any while searching through Google. Any suggestions?

Regards,

Peet

1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Hi @Bolagsverket ,

Feature ShadowDOM support was officially release in LR 2020 SP3, I would suggest you to upgrade your version from LR2020 to LR2020 SP3 to test ShadowDOM elements.

See more about TruClient What's New from: What's New (microfocus.com)

 

Thanks,

Zhipeng

View solution in original post

0 Likes
5 Replies
Cadet 3rd Class
Cadet 3rd Class

I'm having the same issue. Is there any update on this issue?

0 Likes
Micro Focus Expert
Micro Focus Expert

Hi @PeetD and @Xarat ,

Thank you for the feedbacks. Currently TruClient doesn't support Shadow DOM. Suggest to go to the idea exchange https://community.microfocus.com/t5/ADM-Idea-Exchanges/ct-p/admideas  to raise a ticket and vote it. This will influence the development decision making and development process. Thank you.

 

A workaround for the current version of TruClient can be developed by replace the test object identification method to JS and write your own JS logic to get the target for example:

document.getElementById('x').shadowRoot.querySelector('css-query');

 

Best regards,

Edwin

0 Likes
Micro Focus Expert
Micro Focus Expert

Hi @Xarat and @PeetD ,

As Edwin said, TruClient doesn't support ShadownDOM in current market available versions, but we're working on it internally, hope it can be official available soon.

BTW, as a part of our Beta Validation Program, we're recruiting customer to join the ShadownDOM TruClient beta program, if you're licensed customer and interested in joining the program, please feel free to @ me!

Thanks,

Penn

0 Likes
Captain Captain
Captain
Hi i installed Loadrunner 2020 build 610 but ShadowDOM dont work for me ?
0 Likes
Micro Focus Expert
Micro Focus Expert

Hi @Bolagsverket ,

Feature ShadowDOM support was officially release in LR 2020 SP3, I would suggest you to upgrade your version from LR2020 to LR2020 SP3 to test ShadowDOM elements.

See more about TruClient What's New from: What's New (microfocus.com)

 

Thanks,

Zhipeng

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.