量角器,promise函数中的代码永远不会执行

时间:2018-08-07 08:25:34

标签: javascript selenium promise protractor

我正在使用量角器,在执行过程中,我注意到在函数内部未执行Promise。谁能帮我吗?

Then('I want to see three accordion items with the related links', function () {
var accordion = element.all(by.css('.accordion.element'));
browser.driver.wait(accordion.count().then(function(agg){      
browser.pause('il numero da verificare porca di quella : ', agg); 
console.log('il numero è:', agg);   //NON VIENE STAMPATO IL LOG
//expect(number).to.equal(3);
}));
});

0 个答案:

没有答案