let webdriver = require('selenium-webdriver'),
By = require('selenium-webdriver').By,
until = require('selenium-webdriver').until;
let ph = require('selenium-webdriver/phantomjs');
// global stop variable
let gStop = false;
let cliArgs = [
'--load-images=no' // <-- catch you
];
let capabilities = new webdriver.Capabilities().
set('phantomjs.cli.args', cliArgs);
let driver = new ph.Driver(capabilities);
Комментариев нет:
Отправить комментарий