Selenium XPath Tutorial #10 - XPath Axes following, following-sibling

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 มี.ค. 2020
  • Get all my courses for USD 5.99/Month - bit.ly/all-courses-subscription
    🔹 FREE Training's at training.rcvacademy.com 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
    In this Selenium Xpath tutorial we will learn about Xpath axes method "following" and "following-sibling" with examples.
    XPath axes "following" method help in selecting all the nodes that appear after the context (Current) node.
    XPath axes "following-sibling" method helps in selecting all the nodes that have the same parent as the context (Current) node and appear after the context (Current) node.
    Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:
    ✅ ALL PLAYLISTS (Software Testing Mentor)🔸 / softwaretes. .
    ✅ ALL PLAYLISTS (RCV Academy)🔸 th-cam.com/channels/ddU.html...
    ✅ JIRA BEGINNER TUTORIAL🔸 bit.ly/jira-beginner-tutorial
    ✅ JIRA WORKFLOW TUTORIAL🔸 bit.ly/2EzKOEB
    ✅ JIRA ADMINISTRATION TUTORIAL🔸 bit.ly/36MPPFR
    ✅ JIRA TUTORIAL INTERMEDIATE🔸 bit.ly/Atlassian-JIRA-tutorials
    ✅ JIRA TUTORIALS🔸 bit.ly/jira-tutorials
    ✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-for-jira-tutorials
    ✅ SOAPUI TUTORIAL🔸 bit.ly/Sopui-tutorial
    ✅ JSONPath TUTORIAL🔸 bit.ly/2sIZIFG
    ✅ POSTMAN TUTORIAL🔸 bit.ly/2PBbhI7
    ✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸 bit.ly/istqb-agile-tester-cert...
    ✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 bit.ly/istqb-foundation-level-...
    ✅ CUCUMBER SELENIUM TUTORIAL🔸 bit.ly/cucumber-selenium-tutorial
    ✅ TESTRAIL TUTORIAL🔸 bit.ly/testrail-tutorial
    ✅ AGILE TUTORIALS🔸 bit.ly/agile-tutorials
    ✅ PYTHON TUTORIALS🔸 bit.ly/python-programming-tuto...
    ✅ PYTHON BEHAVE TUTORIALS🔸 bit.ly/python-behave-tutorial
    ✅ PRACTITEST TUTORIAL🔸 bit.ly/practitest-tutorial
    ✅ JAVA TUTORIAL🔸 bit.ly/2F1iL1B
    ✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-for-jira-tutorials
    🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
    training.rcvacademy.com/
    🔶 FOLLOW US ON TWITTER 🔶
    / rcvacademy
    / swtmentor
    / mrmverma
    🔶 LIKE US ON FACEBOOK 🔶
    / softwaretest. .
    / rcvacademy47
    🔶 OUR TUTORIAL WEBSITES 🔶
    www.softwaretestingmentor.com
    www.rcvacademy.com
    🔶 GET MY TRAININGS ON UDEMY 🔶
    www.udemy.com/user/manish68/
    #XPathTutorial #XPath #SeleniumXPath #SeleniumTutorial #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

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

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

    Thank you sir

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

    thank you so much

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

    great content as usual sir, did you discuss frames in any video?if yes kindly share link

    • @softwaretestingmentor
      @softwaretestingmentor  3 ปีที่แล้ว

      Hi Dilawar, Please find complete playlist here: "th-cam.com/video/5LV4z_-91WY/w-d-xo.html"
      Please follow the tutorials in order so you do not miss any parts. Regards,Manish

  • @Be_Relax620
    @Be_Relax620 3 ปีที่แล้ว +2

    getting confused what is the difference between descendant and following xpath, both looks same. please let me know the answer asap.

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

      descendant selects elements which are on the level below the current node, like children, grandchildren etc... Following on the other way selects elements that are on the same level, but appear next to each other.

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

    the site is not working for inspecting

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

    Notes: Selenium XPath Tutorial #10 - XPath Axes `following` and `following-sibling`
    1. Introduction:
    - These methods select nodes appearing after the context node in the HTML DOM.
    2. `following` Method:
    - `following` selects nodes appearing after the context node in the DOM.
    - XPath format: `//tagname[@attribute='value']//following::tagname`.
    - All nodes after the current node are selected.
    3. `following-sibling` Method:
    - `following-sibling` selects nodes with the same parent as the context node.
    - Nodes should appear after the context node.
    - XPath format: `//tagname[@attribute='value']//following-sibling::tagname`.
    4. Example Using Chrome Developer Tools:
    - Inspect dropdown element to demonstrate `following` and `following-sibling` methods.
    5. Example Scenario:
    - Select `option` element with value `AG` and find all `option` elements that appear after it.
    6. XPath Examples:
    - For `following`: `//option[@value='AG']//following::option`.
    - For `following-sibling`: `//option[@value='AG']//following-sibling::option`.
    7. Benefits and Usage:
    - `following` and `following-sibling` are useful when web elements lack unique attributes.
    - Understanding their appropriate usage enhances web element locating strategies in Selenium automation.

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

    Sir /following-sibling 0r //following-sibling which one is rit single or double slash

    • @HoangNamPhan1
      @HoangNamPhan1 10 หลายเดือนก่อน

      I got different returns when using both. I don't know why double slash will return more results than single slash.

  • @dilawarkhan4085
    @dilawarkhan4085 3 ปีที่แล้ว +2

    sir you did not implemented the past 4 lectures, too much confusing this and the last 4 lectures.

    • @softwaretestingmentor
      @softwaretestingmentor  3 ปีที่แล้ว

      Hi Dilawar, Please find complete playlist here:
      "th-cam.com/video/5LV4z_-91WY/w-d-xo.html"
      Please follow the tutorials in order so you do not miss any parts. Regards,Manish

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

    screen got blurred after 5.30min

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

      Hi Rajshri, it’s not blurred just colour overlay is done by purpose to highlight the final xpath. Regards, Manish