0.1.0 • Published 6 years ago

jshadow v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

jshadow

A tiny CSS Javascript CSS-selector engine to search in browser through Shadow DOM boundaries

Search across ther Shadow DOM boundaries by a CSS selector. Made to allow fast access to shadowed nodes for testing purposes.

Installation

$ npm install jshadow

Installation of jshadow is quite simple. Just add a script tag to your page or use as a helper in console

Usage

Use global jshadow variable or its alias to select DOM nodes

const list = await jshadow('paper-input')

console.log(list)
// => "  [paper-input#email, paper-input#password, paper-input#name]"

await _$('paper-tab')
// => "[paper-tab, paper-tab, paper-tab]"

MIT License