.count() 建議編輯
自:v1.1檢查由選擇器指定的元素數量是否等於給定的值。
用法
範例
this.demoTest = function (browser) {
browser.expect.elements('div').count.to.equal(10);
browser.expect.elements('p').count.to.not.equal(1);
}
檢查由選擇器指定的元素數量是否等於給定的值。
this.demoTest = function (browser) {
browser.expect.elements('div').count.to.equal(10);
browser.expect.elements('p').count.to.not.equal(1);
}