galen icon indicating copy to clipboard operation
galen copied to clipboard

Shadow DOM access for Protractor

Open UdaySun opened this issue 4 years ago • 5 comments

Hi Guys,

Can you guys let me know how can i setup to access shadowDOM/root on galen framework using protracotr. i tried everything but its not working, i have called my gspec objects with "js" as type "querySelector("")" like this. But still its not identifying element

UdaySun avatar Jul 07 '20 11:07 UdaySun

since Galen is based on Selenium and shadowRoot is only accessible by JS, it would be necessary to support using js selectors instead on just css and xpath selectors, which would require modifying the framework.

riffdr avatar Aug 06 '20 14:08 riffdr

Thanks for the info. Do you have any sample template framework to handle my scenario. That can help us to move forward

UdaySun avatar Aug 07 '20 04:08 UdaySun

Do you mean, another framework?

riffdr avatar Aug 07 '20 06:08 riffdr

No I mean to ask can u provide an sample code handling of shadow dom elements on it

UdaySun avatar Aug 07 '20 06:08 UdaySun

That's what I said in my previous message, it is not possible in Galen, because it would need to modify the framework.

El vie., 7 ago. 2020 a las 8:19, UdaySun ([email protected]) escribió:

No I mean to ask can u provide an sample code handling of shadow dom elements on it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/galenframework/galen/issues/638#issuecomment-670348008, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEUFQSFHWFTA4ZI746UA4DR7OMHLANCNFSM4OSWMOWQ .

-- Miguel A. Zarate, PhD

riffdr avatar Aug 07 '20 06:08 riffdr