We can use below XPATH expressions to find count of rows and columns in a table.
What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com
- //table//th - Find total number of columns in a table. Note that this will only work if all columns are marked using th tag
- //table//tr - Find total number of rows in a table.
- //table//tr[1]//td - Find total number of TD tags inside a given table row.
What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com
No comments:
Post a Comment