我是新来的webdriverio. 我需要选择列名称表其被定义为 div
标记在UI格而不是的 tr
,td。 我能选择的数量提供的列名6下面 xPath
但是,当我执行相同的 xPath
我得到可用的元素为1。
fundSearchTable(){
return $$("//ag-grid-angular//*[@class='ag-header-container']//*[@class='ag-header-cell ag-focus-managed ag-header-cell-sortable']//*[@class='ag-header-cell-text']")
}
const fundColumnList= await this.fundSearchTable;
console.log("number of childs:"+ await fundColumnList.length) //logs 1
有人可以帮我这个因为我需要交互表更经常?