Jsem nový webdriverio. Potřebuji vyberte názvy sloupců pro tabulku, která je definována jako div
kategorie v UI mřížky místo tr
, td. Jsem schopen vybrat počet dostupných názvy sloupců jako 6 s níže xPath
ale když jsem spustit stejný xPath
Jsem stále k dispozici prvky jako 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
Může mi někdo pomoci s tímto, jako jsem třeba pracovat s tabulkami častěji?