类似于量角器,我正在寻找一些关于在实习生的前脚中获取性能日志的信息。
以下只是在量角器中获取日志的示例
browser.manage().logs().get('performance').then(function (browserLog) {
if (browserLog.length > 0)
JSON.parse(JSON.stringiy(browserLog)).forEach(function (browserLog) {
console.log('log: ' + browserLog.message);
});