Skip to main content

Used along with selenium to identify Shadow Elements present under Shadow DOM.

The Structure of shadow DOM would be as below:

Shadow Host -> Shadow Root -> Shadow DOM Elements

check the shadow dom by inspecting the website here:

https://shrinivasbb.github.io/ShadowDomSite

Use this module to get Shadow DOM Elements matching the CSS selectors.

For usage check the below link:

https://github.com/shrinivasbb/shadowselenium

For implementation check the tests folder.

from shadowselenium import ShadowElement

shadowdom = ShadowElement(driver) #argument should be driver instance of opened browser i.e chromedriver etc.

shadowelement = shadowdom.find_shadow_element_by_css("shadow-hostnav", ".nav-link")

Release files for shadowselenium 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shadowselenium 1.0.0
File Size Uploaded
shadowselenium-1.0.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shadowselenium 1.0.0
File Interpreter ABI Platform
shadowselenium-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / shadowselenium-1.0.0.tar.gz

Download URL shadowselenium-1.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7f539c92b1d1a030c178436e53971adcd47e26249411e46c9a90e0dc616dd635
BLAKE2b-256 checksum
How to use checksums
7c8e683794111bd7c13b9137ca630ca3684e99ede66b92456b744bd6ccd41e83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.7 Windows/10

Release files / shadowselenium-1.0.0-py3-none-any.whl

Download URL shadowselenium-1.0.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
715a719df17368ce7047368a8a3a2dd13247efbb8a6667863cddc6c3330359b6
BLAKE2b-256 checksum
How to use checksums
83c444f263462ef15b9da8c47b0a440e67086f0d5039efed3b10e41a6c8ddd75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.7 Windows/10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page