如何使用 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;
关于javascript - 我如何检查复选框是否被 Protractor、CucumberJS 和 Chai 选中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34070040/