【发布时间】:2017-10-05 13:29:11
【问题描述】:
我并没有真正得到 nightmarejs,所以它可能真的很简单。
我的问题是为什么应用程序卡在 Facebook 网址上并且没有转到 Google?
var Nightmare = require('nightmare');
var nightmare = Nightmare({ show: true });
nightmare
.goto('https://facebook.com')
.evaluate(function () {
return document.title;
}
)
.then(function(result){
console.log(result)
nightmare.goto('https://google.com')
})
【问题讨论】:
标签: javascript nightmare