XPath Axes - ancestor, parent, following-sibling, preceding-sibling, child, descendant

Поділитися
Вставка
  • Опубліковано 7 тра 2020
  • In this video, I have explained XPath Axes - ancestor, parent, following-sibling, preceding-sibling, child, descendant
    XPath Axes methods are used in finding the dynamic elements which do not have a unique attribute value.
    An axis represents a relationship to the context (current) element and is used to locate elements relative to that element on the DOM.
    ----- Axes names/methods ------
    👉 ancestor
    👉 ancestor-or-self
    👉 descendant
    👉 descendant-or-self
    👉 preceding-sibling
    👉 following-sibling
    👉 parent
    👉 child
    👉 following
    👉 preceding
    ----- Examples -----
    //label[text()='Email']/following-sibling::input[1]
    //td[text()='Maria Anders']/preceding-sibling::td/child::input
    //label[text()='Email']/following-sibling::input[1]/parent::div
    //div[@class='container']/child::input[@type='text']
    //div[@class='container']/descendant::button
    //div[@class='buttons']/ancestor-or-self::div
    //label[text()='Password']/following::input[1]
    You can practice using the below website:👇
    www.hyrtutorials.com/p/add-pa...
    ▶️ Next Video Link: This is the last video in this playlist
    ◀️ Previous Video Link: • XPath Operators & XPat...
    ↔️ XPath (XML Path Language) Playlist Link: bit.ly/2RlLdkw
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my youtube channel to get access to perks:👇
    / @hyrtutorials
    ==============================================
    ==============================================
    Connect us @
    🔗 Website - www.hyrtutorials.com
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ==============================================
    ==============================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #selenium #xpath #xpathAxes #hyrtutorials #webAutomation
    descendant, parent, preceding-sibling in selenium, preceding-sibling xpath, how to identify xpath with parent child traverse relationship, xpath (following-sibling) + findelements, how to use preceding sibling (xpath axis) in xpath expressions, xpath expression locators, following-sibling xpath axes, selenium xpath traversal : parent | child | preceding-sibling | following-sibling | descendant, xpath function and axes methods||ancestor, preceding-sibling, how to crack selenium interview for experience, how to become an expert in xpath, selenium xpath axis, parent child following preceding ancestor descendant, identify xpath with parent child traverse relationship, preceding-sibling xpath axes, selenium webdriver tutorial, xpath (preceding-sibling), identify child locators through reference of parent node, css & xpath element locators, axes methods | ancestor, ancestor-or-self, how to identify siblings and traverse back to parent nodes with xpath, 1identify xpath with parent child traverse relationship, xpath axes methods following parent ancestor decendant, advanced webdriver xpath tutorial, what is xpath? | how to write xpath?, xpath tutorial for dummies, how to find xpath in chrome for selenium automation scripts, how to use xpath in selenium, how to write xpath to find elements in the webpage, xpath interview questions and answers, xpath interview questions, advanced xpath expressions in selenium, selenium xpath tutorial, dynamic xpath, dynamic xpath in selenium webdriver, xpath tutorial for beginners, selenium tutorial for beginners, selenium testing tutorial, relative xpath, following-sibling, xpath tutorial, xpath in selenium, locators in selenium webdriver, webdriver, xpath in selenium webdriver, general sibling selector, descendant selector, child selector, selenium xpath, xpath, ancestor, following, hyr tutorials, h y r tutorials, xpath axes, xpath axes in selenium, xpath axes with examples, xpath axes in selenium webdriver example, xpath axes example in selenium, xpath axes methods in selenium, xpath axes in selenium webdriver, xpath axes in selenium, xpath axes with examples, xpath axes in selenium webdriver example, xpath axes example in selenium, selenium xpath tutorial, xpath axes methods in selenium, dynamic xpath in selenium webdriver, xpath axes in selenium webdriver, xpath tutorial for beginners, selenium webdriver tutorial, selenium tutorial for beginners, selenium testing tutorial, relative xpath, following-sibling, preceding-sibling, child, preceding, self & descendant

КОМЕНТАРІ • 321

  • @HYRTutorials
    @HYRTutorials  4 роки тому +10

    ↔️ XPath (XML Path Language) Playlist Link: bit.ly/2RlLdkw
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

  • @Deepak-ie7co
    @Deepak-ie7co 3 роки тому +11

    Crystal clear explanation...never heard this kind of explanation in any paid courses as well. Thank you for sharing your knowledge.

  • @vanshikaravi5780
    @vanshikaravi5780 3 роки тому +23

    I worked with HYR, this guy is amazing. Such precise explanation will clear your doubts and give deep understanding of concepts. Great going brother

  • @ritheshjarvis4177
    @ritheshjarvis4177 2 роки тому +4

    Thanks HYR. I have able clear the interview at big MNC because of you. Thanks very much

  • @agnihotrimanoj
    @agnihotrimanoj 2 роки тому +3

    Sir believe me, i was not able to understand this concept in xpath from past 3 months. You nailed it. Awesome, You are the best. Thanks from the bottom of my heart.

  • @rohiitkummar
    @rohiitkummar 2 роки тому +4

    Hats off HYR Tutorials. I literally cannot stop myself from commenting and appreciating this masterpiece. Just wonderful. You don't have idea how much it has helped people like me. Cannot thank in words.

  • @tgrakesh8gmail
    @tgrakesh8gmail 4 роки тому +3

    Clean and crisp explanation....explained what is exactly needed...thank u..😀

  • @CPanhchakmoni
    @CPanhchakmoni 3 роки тому +2

    I've no basic coding skill nor xml or whatever and been struggling to writing a working Xpath expression for weeks. Your search trick and real inspection screen example help me a lot. Thank you

  • @katakamvenkatesh8232
    @katakamvenkatesh8232 2 роки тому +3

    Clarified all my issues during pointing locators which makes my work so much easy Thank you so much bro

  • @shaibalahmed9317
    @shaibalahmed9317 3 роки тому +8

    Dude, you explained very well to the point where I gained confidence in a short time. Keep up the good work!

  • @fattah8864
    @fattah8864 Рік тому +1

    His explanation on this complex xparh are on point. Thank you very much for the great video.

  • @sami684
    @sami684 3 роки тому +3

    Outstanding job. Thank you very much for your devoted precious time.

  • @sarsiv1
    @sarsiv1 3 роки тому +2

    the way of teaching is too good, really I don't know about the x-path concepts while watched this video I got the confidence to write x-paths. thank you so much. keep doing more videos.

    • @HYRTutorials
      @HYRTutorials  3 роки тому +1

      Glad to hear that, Keep Watching and spread about this channel with your friends/colleagues/connections.

  • @mangesh26
    @mangesh26 Рік тому +1

    A big thank you for this explanation. I have been struggling with Xpath axes since long time.

  • @superAweber
    @superAweber Рік тому +1

    Your Xpath teaching is really really good. Thanks!

  • @JustForYou...
    @JustForYou... 3 роки тому +3

    Awesome Explanation. Have Watched many videos For Xpath. But you just nailed it. Hats Off.

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou Kumar 😊
      Glad you liked it

  • @mkgsonu
    @mkgsonu 2 місяці тому

    One of the best videos on X path Axes..

  • @syedhashmi3760
    @syedhashmi3760 Рік тому +2

    The way you explained this concept is sweet and simple, thanks for creating such a wonderful video.

  • @farhadhabibullah548
    @farhadhabibullah548 2 роки тому +2

    You are amazing mate! I was struggling for two days to understand these $hit and I found this video. many thanks and keep up the good work!

  • @hari_kumar123
    @hari_kumar123 10 місяців тому +1

    Thank You for making the wonderful playlist on Selenium . Probably , the best playlist on selenium in UA-cam. 😇😇

  • @ankitap2987
    @ankitap2987 Рік тому +1

    Such a crisp and clear explaination.. for long time i was confused for the xpath axes.Now,after watching this video i think i am pretttty much confident to use it in project.Thanks a lot.

  • @priyadarshiniMG
    @priyadarshiniMG Рік тому +1

    Thank you so much for your efforts.your videos are just awesome.very clear and easy to understand the concepts.

  • @arunmuraleedharan2252
    @arunmuraleedharan2252 Рік тому +1

    I have gone through many other videos for learning xpath ..finally got urs.crystal clear explanation..gerat work bro..🙏

  • @jillbv9380
    @jillbv9380 3 роки тому +2

    This is amazing explanation! thank you so much!

  • @padalanripalini7891
    @padalanripalini7891 2 місяці тому

    Really helpful. Much Appreciated thank you so much 🙂

  • @pritamsharma9957
    @pritamsharma9957 Рік тому +1

    Very clear explaination, thanks for your help.

  • @rajitachenna7703
    @rajitachenna7703 3 роки тому +1

    Very well explained. Thank you for the video.

  • @reshmaanand1889
    @reshmaanand1889 3 місяці тому

    Thnq for such a wonderful explanation . I was so getting confused with various other materials on the internet until i landed here . Grt work .

  • @ckshitij21
    @ckshitij21 2 роки тому +2

    Thank you so much for creating this video and the practice page. You've got one more subscriber :)

  • @prasannamahale1854
    @prasannamahale1854 3 роки тому +3

    To quality explaination even fresher's can understand easily
    Tq for making video

  • @harishprasanth3615
    @harishprasanth3615 5 місяців тому

    It's really a wonderful useful video, very much understanding. Thank you so much 🎉❤

  • @devanshshah4062
    @devanshshah4062 3 роки тому +1

    Excellent explanation . Thank you!

  • @yuvasrivanth
    @yuvasrivanth 2 роки тому +1

    Loved your way of explaining and hard concepts, you will make it easy 🙏

  • @indrasenareddy4066
    @indrasenareddy4066 2 роки тому +1

    Awesome bro thanks for sharing your knowledge

  • @thetruth5672
    @thetruth5672 2 місяці тому

    Thank you so much sir for this wonderful and simple explanation

  • @Ranjitkumar-wh4on
    @Ranjitkumar-wh4on 3 роки тому +1

    Before watching your videos I always face to find the xpath for dynamic element but after watching your video now I can write xpath for any kind of elements
    the way you taught it's best in the market

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou 😊
      Keep watching and don't forget to suggest this channel to your colleagues.

  • @adityanetalkar2649
    @adityanetalkar2649 2 роки тому +1

    Thank you! for such clear explanation.

  • @bindunagaraj123
    @bindunagaraj123 3 роки тому +2

    wow, this video is just awesome. I loved ur teaching. Thank you for sharing your knowledge.

  • @user-du9yi6lj7h
    @user-du9yi6lj7h 9 місяців тому

    very informative and clear on xpath Axes

  • @nadipavan5212
    @nadipavan5212 2 роки тому +1

    bro , The Best video for the xpath content GREAT!!! GREAT!!! you nailed it like any thing

  • @praveen123ist
    @praveen123ist 3 роки тому +1

    Very nicely explained, thanks so much!!!

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou
      Keep watching and share it with your friends as well.

  • @AS-vj8ki
    @AS-vj8ki 2 роки тому +1

    English samzne me hard jati thi other vdo me lekin ye pahle vdo me english me hi pura smza diya thnx bro

  • @prakashk6536
    @prakashk6536 Рік тому +1

    The way you explained the concept is understandable to everyone...thanks alot...

  • @maheshchantala5709
    @maheshchantala5709 3 роки тому +1

    Thank you for all the videos anna..

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou for watching and loving them.
      Share the channel and videos with friends and colleagues.

  • @umeshchandra6201
    @umeshchandra6201 9 місяців тому

    excellent Explanation with Example -Bro. Keep it up. This will really help

  • @jkr3008
    @jkr3008 Рік тому

    simple and clear yet detailed explanation
    thank you so much, sir

  • @sancharidas7532
    @sancharidas7532 2 роки тому +1

    Kudos to your hardwork to make our life easier.

  • @gourabkarmakar4589
    @gourabkarmakar4589 Рік тому +1

    Well Explained and very concise

  • @ashwini6740
    @ashwini6740 2 роки тому +1

    explanation is very clear, got good understanding of how axes wrks !!

  • @itikaalavamsy4972
    @itikaalavamsy4972 Рік тому +1

    Super Bro Meru.... Naku oka support dorikina feeling mee videochusthuntey🤩👍

    • @HYRTutorials
      @HYRTutorials  Рік тому

      Wow that's good to hear buddy

    • @itikaalavamsy4972
      @itikaalavamsy4972 Рік тому +1

      @@HYRTutorials bro Jenkins Medha from scratch a video will be Helpful

    • @HYRTutorials
      @HYRTutorials  Рік тому

      Yeah but will take some time buddy.

  • @Rameshkumar-tn3wp
    @Rameshkumar-tn3wp 3 роки тому +1

    Bro , I watched many video on Xpath, but this is so clear i can easily understand..thanks a lot bro..

  • @piyushjhawar7681
    @piyushjhawar7681 2 роки тому +1

    Very beautifully explained.
    Thanks.

  • @Analytical_Mind
    @Analytical_Mind Рік тому +1

    Very well explained video - thanks

  • @spaul7453
    @spaul7453 2 роки тому +1

    Awesome Explanation and excellent example

  • @momanddrishna1824
    @momanddrishna1824 2 роки тому +1

    Thank u so much for this vedio..after watching 4/5 vedios now m clear about x path.👍

    • @HYRTutorials
      @HYRTutorials  2 роки тому

      That's good to hear, thankyou 😊

  • @111991himanshu
    @111991himanshu 2 роки тому +1

    Nice one, I'm looking for more such videos

  • @aparnahumad43
    @aparnahumad43 3 роки тому +3

    Wow great explanation, Hats of to your hard work

  • @magedrefat1658
    @magedrefat1658 2 роки тому

    Amazing.. your explanation is very clear.

  • @meghasuri1152
    @meghasuri1152 3 роки тому +1

    This is so far the best video on xpath.. awesome explanation

  • @chetansahu8108
    @chetansahu8108 10 місяців тому

    Thanks for sharing, it's a really helpful video nicely explained.

  • @padmavathykorrapati329
    @padmavathykorrapati329 4 роки тому +2

    Awesome..Thank you so much

  • @preethimarineni
    @preethimarineni Рік тому +1

    This is awesome way to remember. ❤❤❤❤

  • @scorpionprafull7249
    @scorpionprafull7249 4 місяці тому

    very much helpful, thanks

  • @revathye8483
    @revathye8483 3 роки тому +9

    Explanation level awesome

  • @abvy25
    @abvy25 2 роки тому +1

    Great explaination !!!

  • @laxmi5639
    @laxmi5639 3 роки тому +1

    Very nicely explained. Thanks...

  • @soumyapradhan6537
    @soumyapradhan6537 Рік тому

    my concept about xpath is clear after see this amazing tutorial , Really your teaching style is amazing 👍 keep it up Sir .

  • @manyamkishoresrinivas4652
    @manyamkishoresrinivas4652 2 роки тому +1

    very good explanation I didn't know how to write XPath right now I'm able to Wright xpath

  • @rupadhyay73
    @rupadhyay73 3 роки тому +1

    Just one word amazing.... Very easy to understand 🙏

  • @mangeshmane7803
    @mangeshmane7803 Рік тому +1

    Very helpful video thank you so much

  • @sandeshsampathgiri3420
    @sandeshsampathgiri3420 2 роки тому +1

    Awesome! Very nice explanation!

  • @aneerpa8384
    @aneerpa8384 7 місяців тому

    Informative session

  • @nandashivaprasad6159
    @nandashivaprasad6159 2 роки тому +1

    Very Nicely explained thanks alot

  • @subhaneilsengupta3053
    @subhaneilsengupta3053 2 роки тому +1

    U are Awesome !!! Liked, Subscribed !!!

  • @zeeshanabbas9773
    @zeeshanabbas9773 6 місяців тому

    Very informative video thanks

  • @preetisarode3865
    @preetisarode3865 3 роки тому +2

    Thank you so much video was very helpful 🙏🙂

  • @harishprasanth3615
    @harishprasanth3615 5 місяців тому

    All the below comments are came from their heart's, it's really fantastic .

  • @kirthikas1896
    @kirthikas1896 3 роки тому

    U really don't know how this means to me , my teacher don't even taught me one pinch of topic out of it. I'm preparing for my exam using this , Thanks 3000

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou 😊
      All the best for your exam

  • @akshaykamble8266
    @akshaykamble8266 2 роки тому

    nice explanation everything understood in one go........... (y) keep it up n thanks for enhancing my knowledge :)

  • @dev6296
    @dev6296 Рік тому +1

    Fantastic content formation thanku sir.

  • @nithishkthakur715
    @nithishkthakur715 7 місяців тому

    Thanks a lot.

  • @johnsonharpal4978
    @johnsonharpal4978 3 роки тому +1

    Nicely explained, Thanks 🙂👍

  • @shivachanda4722
    @shivachanda4722 3 роки тому +1

    Excellent, very useful 👍

  • @aaishwaryasangle2793
    @aaishwaryasangle2793 Рік тому

    Nice. Thank you for preparing the understandable videos. Please make more videos on Cypress

  • @sampathkumargattu537
    @sampathkumargattu537 2 роки тому +1

    It was explained very crystal clear and very helpful

  • @rachitmongia5993
    @rachitmongia5993 3 роки тому +1

    You are the boss!

    • @HYRTutorials
      @HYRTutorials  3 роки тому

      Thankyou 😊
      Now you r the boss after learning about xpath clearly

  • @arun53413
    @arun53413 Місяць тому

    @HYRTutorials : Could you pls help me to get the Xpath axes for the "Dashboard" label shown below:
    I tried the xpath for "//i[@class = 'nav-icon fas fa-desktop']" and later not able to locate "Dashboard" using child or following-sibling.


    :: before

    Dashboard

    Thanks in advance.
    ARUN

  • @shwetasingh-kb5iz
    @shwetasingh-kb5iz 3 роки тому +1

    Great explanation... U made this concept so easy👍

  • @aruns3907
    @aruns3907 7 місяців тому

    Many companies are not allowing to use the index whether it search on the page level or on the code level , and I find it is very awkward to find the xpath of some complicated element with out using this index method. Infact it will take more time to find an accurate one. Does anyone have any idea about how to find the xpath in less time with out using indexing

  • @anuradham3910
    @anuradham3910 2 роки тому +1

    excellent . Hats off

  • @sagarikav3989
    @sagarikav3989 2 роки тому +1

    Thank you :)

  • @selvimurugesh3835
    @selvimurugesh3835 3 роки тому +3

    I almost watched 5 to 6 videos sir, out of which your video explained the concept so clearly. Could please post another video with more examples

  • @akshay8702
    @akshay8702 Рік тому +1

    Best presentation 👍

  • @ankitarege8440
    @ankitarege8440 Рік тому +1

    Really good explanation.

  • @sairammadipalli2600
    @sairammadipalli2600 2 роки тому +1

    Excellent bro really thanks a lot ....

  • @nsnilesh604
    @nsnilesh604 3 роки тому +1

    Awesome explanation

  • @manimanu03
    @manimanu03 3 роки тому +1

    Thanks a lot man....

  • @kenzakhelkhal7931
    @kenzakhelkhal7931 2 роки тому +1

    Thanks dude u did very well

  • @rahulkumar-kh6zk
    @rahulkumar-kh6zk 3 роки тому +2

    good explanation and thanks for zoom

  • @Shubh_Unde
    @Shubh_Unde 2 роки тому +2

    very well explained brother👍