What is Difference Between following and descendant | NATASA Tech

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ต.ค. 2024

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

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

    Good explanation, I have small doubt if I want select only phone price 61k in the above example, can we write an xpath for this?

    • @NATASATech
      @NATASATech  4 ปีที่แล้ว

      yes we can able to write xpath for this.you can write xpath for phone price using following
      step1: will store into list of webelements
      step2: loop all prices
      step3:put if condition(price61k)
      step4:give click actions for all condition matched price
      step5:for going to next element price ,rename of declaration list of webelement(step1) for interacting with DOM ,after finishing loop

    • @nareshpatnam
      @nareshpatnam 4 ปีที่แล้ว

      @@NATASATech thank you I will try

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

    Can u pls check
    Following selecting everything
    Except the descendants
    This is what I have learnt from one of tutors can u pls confirm on this thanks

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

      Yes correct .
      Following ->select everything in current page
      Descendant-> select current node
      I explained here and shows clearly in html elements ,how will covered each tag for following /descendant in amazon