I know that Selenium has a built-in getTable method ("tableName.row.column") can conveniently return a cell. However, how can I return an entire column?
I tried getText () directly, however only the first cell was returned,
getText("//tbody[@id='recordsTable']/tr[contains(@class, 'someclass')]")
But getXpathCount () with the same Xpath expression showed that there are several elements.
getXpathCount("//tbody[@id='recordsTable']/tr[contains(@class, 'someclass')]") // result is 15
Please, kindly help, thank you very much!
source
share