chromy:Chromy是用于操作无头Chrome的库。 :beer_mug::beer_mug::beer_mug:

时间:2021-02-01 05:34:53
【文件属性】:
文件名称:chromy:Chromy是用于操作无头Chrome的库。 :beer_mug::beer_mug::beer_mug:
文件大小:104KB
文件格式:ZIP
更新时间:2021-02-01 05:34:53
javascript chrome node browser nightmare 克罗米 Chromy是用于操作无头Chrome的库。 文档站点: : Chromy与Nightmare.js类似,但有一些区别: 通过Chrome DevTools协议控制Chrome。 支持移动仿真。 无需准备诸如xvfb的屏幕。 要求 节点6或更高版本 在使用Chromy之前,请在计算机上安装Chrome60或更高版本。 Chrome59或更高版本支持无头模式。 安装 npm i chromy 用法 const Chromy = require ( 'chromy' ) // not headless // let chromy = new Chromy({visible:true}) let chromy = new Chromy ( ) chromy . chain ( ) . goto ( 'http://example.com/' ) . evaluate ( ( ) => { return document . querySelectorAll ( '*' ) . length } ) . r
【文件预览】:
chromy-master
----.babelrc(290B)
----docs()
--------index.js.html(26KB)
--------index.html(20KB)
--------styles()
--------external-CDP.html(2KB)
--------scripts()
--------Document.html(7KB)
--------document.js.html(14KB)
----package.json(2KB)
----test()
--------inject.js(1KB)
--------selector.js(708B)
--------screenshot.js(2KB)
--------iframe.js(1KB)
--------util.js(909B)
--------evaluate.js(2KB)
--------goto.js(949B)
--------wait.js(4KB)
--------domutil.js(1KB)
----LICENSE(1KB)
----package-lock.json(137KB)
----src()
--------functionToSource.js(2KB)
--------document.js(13KB)
--------index.js(25KB)
--------util.js(3KB)
--------error.js(895B)
--------devices.js(578B)
--------emulation.js(3KB)
----.npmignore(133B)
----.eslintrc.js(630B)
----examples()
--------cookie.js(534B)
--------emulate.js(773B)
--------custom_emulate.js(1KB)
--------screenshot.js(759B)
--------event.js(772B)
--------console.js(463B)
--------basic.js(340B)
--------iframe.js(661B)
--------navigation.js(926B)
--------form.js(662B)
--------communicate.js(619B)
--------define_function.js(898B)
--------pages()
--------tab.js(940B)
--------lib()
--------screencast.js(650B)
--------dom.js(296B)
----.gitignore(48B)
----test_pages()
--------inject.js(250B)
--------iframe_inside.html(731B)
--------index.html(591B)
--------wait.html(292B)
--------domutil.html(610B)
--------iframe.html(304B)
--------inject.css(69B)
----CHANGELOG.md(3KB)
----README.md(16KB)
----scripts()
--------status.js(1KB)
----.editorconfig(147B)
----build()
--------document.json(314B)

网友评论