Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于某种原因,我不能使用phantomJs,它没有呈现的页面视口。
如何关闭slimerJs中的视口?
解决方案之一是:
var page = require('webpage').create(); page.viewportSize = {width: 0; height: 0},
但有了这个,我得到了不需要的弹出窗口。
您可以在 Linux 上关闭视口。你应该安装 xvfb。 SlimerJs 文档