1.2.6 • Published 3 years ago

chrome-debugging v1.2.6

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

chrome-debugging

Chrome DevTools Protocol.

npm i chrome-debugging

Cache built-in by target id, common helpers, and easy to use.

Usage

const ChromeDebugging = require('chrome-debugging')

const chrome = new ChromeDebugging({ port: 9230 })
const targets = await chrome.list({ ignoreProtocols: ['devtools'] })

for (const target of targets) {
  const tab = await chrome.use(target.id)

  // const { DOM, CSS, Page, Runtime } = tab
  console.log(await tab.$('*'))

  // await tab.close()
}

await chrome.destroy()

It uses chrome-remote-interface internally.\ I.e. tab has several properties, methods, etc as the original "CDP client".

License

MIT

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

0.0.1

8 years ago