How to write xpath to get the odd rows or even rows of the web table | XPath for tables

แชร์
ฝัง

ความคิดเห็น • 8

  • @umangsharma7447
    @umangsharma7447 2 ปีที่แล้ว +4

    Thanks Sanjay ! For even indexes, we can also use [position() mod 2 = 0]

  • @ganeshkannan627
    @ganeshkannan627 ปีที่แล้ว +1

    This is really interesting and new topic about xpath. It will be helpful in interview point of view. Thankyou sanjay 🎉

  • @Swarno2004
    @Swarno2004 2 ปีที่แล้ว +1

    Very informative video,learn new concept,Thank you for sharing.

  • @vinayakajoshi7573
    @vinayakajoshi7573 2 ปีที่แล้ว

    Thanks good video can you show how it will implement using css other than xpath

  • @sidharthpattanayak1066
    @sidharthpattanayak1066 ปีที่แล้ว

    What will be the Xpath for lastrow of 5th no. Table ?

  • @chandnisonawane683
    @chandnisonawane683 2 ปีที่แล้ว +1

    Thanks for the video it really helpful....
    One question....if we want to print all the username of odd position?.can you please tell me ?

    • @SelectorsHub
      @SelectorsHub  2 ปีที่แล้ว

      There you go - //table//tbody//tr[position() mod 2=1]//td[2]