如何检查Protractor,CucumberJS和Chai是否已选中复选框?
var el = 'myCheckbox';
this.expect(element(by.model(el)).to.have.prop("checked", true));
最佳答案
isSelected()
会这样做:
this.expect(element(by.model(el)).isSelected()).to.eventually.be.true;