How to get table header data using Selenium webdriver in java

1,546 views
Skip to first unread message

sweta kalyan

unread,
Feb 26, 2017, 2:27:47 PM2/26/17
to Selenium Users
How to get table header data using Selenium webdriver in java and compare with the excel with an example

anemuday

unread,
Feb 27, 2017, 1:21:14 AM2/27/17
to Selenium Users
Check if your table contains the top row as header row. If it is header row get all columns as xpath like
table[name='xyz']\tr[0]\td    // which will return all header rows.

Compare this with your Excel header rows of data.

Thanks,
Uday
Reply all
Reply to author
Forward
0 new messages