Turn off slimerJs viewport

2019-09-12 18:09发布

问题:

For some reason i can't use phantomJs, which does not have a rendered page view-port.

How can I turn off view-port in slimerJs?

one of the solutions is:

var page = require('webpage').create();
page.viewportSize = {width: 0; height: 0}, 

but with this I get unwanted pop-ups.

回答1:

You can turn off view-port on Linux.
You should install xvfb. SlimerJs docs