Home > Back-end >  Write relative xpath that selects all values present in list
Write relative xpath that selects all values present in list

Time:06-21

I am using website enter image description here

CodePudding user response:

select table with class "tsc_table_s13" and find the required data //table[@]/tbody/tr/th

if you want to get all the data in the table then use //table[@]/tbody/tr to loop over every row and use relative paths to get the required data like .//th/text() and so on

CodePudding user response:

The below xpath expression will select all of your above mentioned/required data:

 //*[@]/tbody/tr/th[1]
  • Related