Selenium Webdriver - Fetching Table Data

后端 未结 7 1974
执笔经年
执笔经年 2021-02-04 08:03

I want to fetch data from tables in UI. I know about looping through rows and columns using \"tr\" and \"td\". But the one the table I have is something like this:



        
7条回答
  •  孤街浪徒
    2021-02-04 08:41

    yes it is working for c# with selenium...

    IList cells = row.findElements(By.xpath(".//*[local-name(.)='th' or local-name(.)='td']"));
    

提交回复
热议问题