0
我有一個頁面對象如何使用nightwatch.js頁面對象上的元素列表?
export default {
url: function() {
return `${this.api.launch_url}/custompage`;
},
commands: [customPageCommands],
sections: {
table: {
selector: '.table tbody',
elements: {
tableRows: {
selector: 'td'
}
}
}
}
};
tableRows應該返回元素的列表。在我的測試中,我想檢查表格中的行數。有人有解決這個問題嗎?