sukgu / pyshadow

Selenium plugin to manage multi level shadow DOM elements on web page.
Apache License 2.0
47 stars 10 forks source link

web with iframes and shadow root. #10

Closed bwecoli closed 2 years ago

bwecoli commented 2 years ago

web with iframes and shadow root. How to work with both at the same time? There are iframes that contain shadow root, which in turn contain new iframes and new shadow root.

sukgu commented 2 years ago

@bwecoli the first switch to iframe and then just use as usual. For multiple iframes, under shadow root, you will have to explicitly switch to those iframes after finding them using shadow methods technically.

bwecoli commented 2 years ago

Thank you. I will start working on it to see if I can achieve positive results. Best regards.

El lun, 8 ago 2022 a las 7:30, Sushil Kumar Gupta @.***>) escribió:

@bwecoli https://github.com/bwecoli the first switch to iframe and then just use as usual. For multiple iframes, under shadow root, you will have to explicitly switch to those iframes after finding them using shadow methods technically.

— Reply to this email directly, view it on GitHub https://github.com/sukgu/pyshadow/issues/10#issuecomment-1207683825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZIO3YKEWQ4X4FBAP3SFN3TVYCLO3ANCNFSM5WRO6RGQ . You are receiving this because you were mentioned.Message ID: @.***>