【发布时间】:2017-09-09 18:12:24
【问题描述】:
我需要在 select 中选择选项并在此之后检查复选框中的一些值。 但问题是当我选择选择选项时,我无法选中复选框。 我猜问题出在“expect(element...”)这一行
$scope.isChecked = function(id, matches){
angular.forEach(matches,function(match) {
if(match === id){
expect(element(by.id('check'+match)).getAttribute('checked')).toBeTrue();
}
});
$scope.calculatedValue = 'You selected number ' + id +" and have "+ matches;
};
【问题讨论】:
标签: angularjs select checkbox element