How to Get only Change (Pts) column data (with minus values) from this Table in selenium?

40 Views Asked by At

enter image description hereenter image description here

I am trying with this XPath expression. It will fetch data (with - values) but for both column. But I want to fetch only change (Pts) column data.

//*[@id="div_bseindices"]/div/div/div/ul/li[contains(@class,'alignR red')]
1

There are 1 best solutions below

1
Work On

use the tag it will take the value which is in minus points here I am using xpath which contains text as '-' hope it works //*[@id="div_bseindices"]/div/div/div/ul/li[contains(text(),'-')]