量角器 - 使用from.repeater中的行...无法使column()工作

时间:2016-11-26 20:04:22

标签: angularjs selenium protractor e2e-testing angularjs-e2e

为什么这样做......

  this.modelChoices = function(rowNumber) {
    return element.all(by.repeater('model in vehicleCheckboxes.models')).get(0).isSelected();
  } 

   it('all models should be deselected', function() {
    expect(ppvPercentages.modelChoices()).to.eventually.be.false;
  });

但不是吗?

  this.modelChoices = function(rowNumber) {
    return element.all(by.repeater('model in vehicleCheckboxes.models').row(0).column('model.description').isSelected();

还是这个?

  this.modelChoices = function(rowNumber) {
    return element.all(by.repeater('model in vehicleCheckboxes.models').row(0)).isSelected();
  } 

0 个答案:

没有答案