1.2.6 • Published 2 years ago

chrome-debugging v1.2.6

Weekly downloads
3
License
MIT
Repository
github
Last release
2 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

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

0.0.1

7 years ago