Complete Xpath from Basic to Advance | 14 Xpath Function | All Xpath AXES | Xpath tutorial

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 209

  • @furkatsultonov9976
    @furkatsultonov9976 Рік тому +10

    I give you the biggest like button and I would give thousands of like buttons with just one click if it was possible )) I found everything related to XPATH concept in one video tutorial with the highest quality that I have ever found so far. Thank you for the tutorial and keep up the good work!

  • @brandonhunter3036
    @brandonhunter3036 2 роки тому +34

    Yeah this is completely underrated. Frankly better quality than many paid tutorials out there and far better explanations given. Very well done!👏👏

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

    I didn't really even need to learn XPath, but you made this such a breeze to go through and I'm so glad I did. Thanks!

  • @kendriip
    @kendriip 3 роки тому +10

    This is a underrated video and am telling you this saved me hours of possible research.

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

      Yep. It helped me so many times with this information

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

    i swear man...i was looking for this...thank u thank u thank u....! none of the youtuber has explained in such depth...!

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

    Thank you so much for making this video, After watching this video any one can make any X-path ,no need for any other video /class to join

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

    this tutorial is so much exciting. covered all my doubts in a single video. i havent seen this kind of video on xpath before. thankyou so much sir

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

    This is great. Helped me tremendously. Just started a script 2 weeks ago I was lost.

  • @tarunkumar-gz1fn
    @tarunkumar-gz1fn Рік тому

    One of best video on xpath. Cleared most of my doubts. Thank you.

  • @Phillip.K.J
    @Phillip.K.J 2 роки тому

    nice pronunciation and perfect explanation
    continue watching at 41:36

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

    best tutorial ever!!! I searched at lest 30 minutes for something that's easily understandable . Thank you!

  • @jetray5914
    @jetray5914 3 роки тому +11

    This was super super helpful, I will definitely be referring to this as a cheat sheet for a long time!! thanks so much!

  • @loretalobo3552
    @loretalobo3552 4 роки тому +9

    That heirachy chart was really easy to understand. This covers almost all of xpath..Thanks a lot for making it so easy to understand.

    • @Automationzone
      @Automationzone  4 роки тому +1

      Thank you @Loreta, i am glad that the xpath heirachy chart was helpful. Initially i was at a crossroad, to add the chart or not, now looking at your comments i am glad that i did add it.

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

    Best xpath video so far….thank you for nice presentation!

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

    Excellent presentation. I was well organized, easy to understand and follow. You explain concepts clearly and effectively. Much appreciated.

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

    This video has given me so much confidence... thanks a lot brother

  • @f.a5148
    @f.a5148 Рік тому

    i have watched a lot of videos, but this video is unique thanks a lot brother.

  • @vinayakadam8656
    @vinayakadam8656 6 місяців тому +1

    This is really an amazing video which im really unaware we can write these type of xpaths in here, really greatvideo all thanks to you.

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

    Super Video bro.....I was searching for any good video finally got it

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

    It's the best tutorial on Xpaths. Thank you sir!

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

    AWESOME IS THE WORD FOR YOU ... You explained it so well .. I could have not asked for anything else .

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

      Thank you Nanda for you kind words. Do subscribe for more content 👍

  • @patriotir
    @patriotir 2 роки тому +5

    Thank you so much for this great video! I've read so many tutorials, but you explained it very well. great job

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

    Really appreciate the effort for creating the example pages where we can practice. It was really really helpful. will look forward to new videos from you. It saved a lot of time and Thank God, I got this video soon and didnt waste time on other tutorials. I feel confident that I can implement this now :)

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

    Look like deep dive into an ocean 🌀🌊🏊 Hats off for the video

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

      Thats a unique comment. Thanks Progadeesh for your support. So subscribe for more such content 👍

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

    VERY HELPFUL !!! You made it very simple for the beginners. Thank you so much.

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

      Thank you Sulaiman, do subscribe for more such tutorials 👍

  • @MdRahaman-pj9rc
    @MdRahaman-pj9rc Рік тому +2

    Excellent and excellent. Very grateful to You.💕💕

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

    superb explaination ..in simple word..

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

    Perfect xpath course ever. thnx

  • @41_hrishikeshpawar8
    @41_hrishikeshpawar8 Рік тому +1

    Indeed a very great and useful tutorial. It would be good if the tutorial started with 3-4 mins of theory about XPATH, like what it is and its uses. But anyways we can google. Thank you for this tutorial.

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

      Ya.. that's a good thing to have.. will make a note of this.

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

    This is indeed underated video tutorial, keep up the good work and hope to see more updated videos as alot has changed since this was posted, thank you so much!!!

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

      Thank you..will try to keep up with new content. Thank you for your motivational words !! 😃

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

    This is the best vid I ever seen.Easy to understand

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

    Thanks.. very well explained and finally found a best video in utube for xpath🤗🤗🤗 👏👏💯

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

    Best video on the subject ever. Thank you so much!

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

    thanks man , you just saved me hours of research

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

    Thanks, after watching this video I am able to handle with web scraping faster.
    In my opinion adding some demo sites for testing is a superb idea!
    What a shame that not so many people have watched it. ;)

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

    Great explanation man! Watched numerous videos before this one and i wasn't able to understand the xpaths good. Now i feel confident!! Keep up the good work! Subscribed

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

    Bro you are simply awesome .I got to know many things which i didn't know earlier. appreciate your effort 👏👏.

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

    excellent job. contains very good information.

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

    your videos are of great help..plz come up with more frequency

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

      Thanks. I agree, I need to be more consistent.

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

    You saved my time and efforts, thank you so much!

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

    Excellent teaching

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

    best tutorial ever. very informative. very nicely explained !!

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

    Excellent Tutorial! It provided great coverage, awesome examples and all done at a very good pace! Wish everyone could do FANTASTIC tutorials like yours! Thanks SOOOOO MUCH!!!

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

      Wow, one of the best comments I have got so far.. it's ppl like you who motivate me to make more content.. thanks a lot for taking the time out to comment on my videos, I Highly appreciate it..

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

      @@Automationzone I've been doing QA Automation since 1996 (SilkTest, WinRunner, QTP, some LoadRunner, some Soap UI Pro, Test Director), and now learning Selenium with C# and perfecting MySQL (for holding data-driven test case data, test results and list of test case information so filtered tests are driven from the database). Next is Java for JMeter and Selenium. Plus already have it so test results and steps are written to html files with screen shot links embedded. Next ,need to create a web page users can go to to view the results and to kick off and schedule test runs from the web. So I've been looking at lots of tutorials for years now and seriously, yours are are VERY VERY GOOD! I would put yours on par with "Programming with Mosh" but I like your a little pace better. So glad I found your channel. Already subscribed!

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

    Bro... you literally saved me bro.
    I didn't skipped even once in this vedio. It was that good 💯
    Thanks a lot. I'll definitely forward this vedio to others who need this

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

    Amazing session

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

    Your Tutorial is amazing containing all the information which I was confused about. Thank you so much.

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

    Very nice explanation... Easy to understand. Thanks.

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

    Hi. Thank you for such easy explaination. Really appreciate your efforts. 👌😃

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

      Thank you Preeti for your support. Do subscribe for more content 👍

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

    Great tutorial. Thank you!

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

    Wow Great Brother 🎉🎉🎉🎉

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

    This is very well curated. Loved it ❤

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

      Thanks Saurav !! So subscribe for more tutorials 👍

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

    really awesome training Brother.

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

      Thanks Chandan, do subscribe for more tutorials 👍

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

    Simple and informative liked his effort and teaching skill keep up this good work.

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

    Such a great content!

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

    Thanks a lot sir you had helped me lot in clearing my doubts.

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

    Really cool.. nice explanation...

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

    great content. Found everything here.

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

    Thank you for making this Video. It is very useful especially those who are into automation testing.
    And thanks for adding timelines for individual topics.

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

    This video is very helpful

  • @vamshikiran36
    @vamshikiran36 4 роки тому +1

    Thanks, very informative. And the explanation with examples is awesome

    • @Automationzone
      @Automationzone  4 роки тому +1

      Thank you @Vamshi, i am glad that you found my explanations useful. This encourages me to add more videos to the playlist

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

    Thanks a lot for your clear explanation on xpath.

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

    best tutorial ever!!

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

    Thanks a lot sir . The video was very informative .

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

    What a wonderful video ❤

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

    Super bro thank you soo much really

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

    Thank you very very much.

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

    Great job, best Locator video yet. I have a question, if you would help. I gave a 5-column by the 50-row table. I need to find a name in the 5th column and then return the matching 1st and second column data using the the Xpath or CSS locator. is this using ./ and ././?

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

      This is one way we can implement this
      A table is made of three tags
      Table --> Table Row ( TR ) --> Table Data ( TD )
      there might be more tags in between this.. but these will always be there
      Step 1 - get the TD with ur data
      String elementText = "element_text_value";
      WebElement element = driver.findElement(By.xpath("//td [ text() = '" + elementText + "']"));
      Step 2 - find the Row it belongs to
      WebElement row = element.findElement(By.xpath("./ancestor::td[1]"));
      note u can combine step 1 and 2.. but try not to do that.. it will be difficult to debug if needed.
      Step 3
      Now u have the row.. find ur TD via index after u get the list of elements in that row
      List data = row.findElements(By.xpath("//td"));
      data.get(0).getText();
      data.get(1).getText();

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

    thank u so much sir.............👌👌👌👌👍👍👍👍👍👍👍

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

    Bookmark:
    👉All elements are 1st child : 20.16
    👉Partial match: 28.00
    //p[contains(text(),'in successfully')]
    (//p[contains(@class, 'css-17n507x')])[1]

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

    thank you this was very helpful

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

    One thing I do want to say before you read the rest of the text.Your explanation of the Xpath concept is the best video I have come across yet.
    I really wish you was showing a larger screen area of the HTML so we can see the context.a good example of where a larger area would have helped is at 21:00. I can't seethe HTML tree so I could clearly under stand the index and the context. The text above isn't really as important to show the full body of text if you are busy explaining the HTML.

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

    Good informative video!!

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

    Wow really nice video....

  • @KuldeepSingh-nq1vi
    @KuldeepSingh-nq1vi 2 місяці тому

    //I am speechless after watching your video, /I got solution of my most of the problems.
    /How can I get this PPT as well. /Thanks Bro.

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

    Amazing video, thank you!

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

    good vid thx for the knowledge, only thing is you typed at 42:10 bxcd while you said axcd and which it should be if I understand correctly by your explanation and the context

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

      Yes, that was a mistake on my side. Glad u liked the content!!😃

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

    really nice in depth video, thank you , can you make video on css pls

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

      Here u go -
      ua-cam.com/video/aMLENDW0QKE/v-deo.html

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

    Best tutorial. thanks

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

    I actually feel like I understand how to do this now, thank you so much! I have a question along the lines of your string length example. In the following example, how would I write an xpath for the width being greater than 40px?
    I'm successfully using the below path, but I'm curious if there's a better way:
    [contains (@class,'grid-wrapper') and not (@style='width: 40px;')]
    Thank you!

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

      Try this.. not sure if it will work.. but work around these lines
      [contains (@class,'grid-wrapper') and
      (number(substring-before(substring-after(@style, 'width:'),'px;')) > 39 )]

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

      @@Automationzone this worked on the first try, thanks again!

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

    Thank you sirr

  • @jasmined-w4u
    @jasmined-w4u 9 місяців тому

    Good session 🙂

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

    Thank you!!

  • @RameshRamesh-me4gm
    @RameshRamesh-me4gm 3 роки тому

    You are amazing!!

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

    Very Learning Video.

  • @TheShelar
    @TheShelar 3 роки тому +13

    42.25
    translate ( "abcd", "b", "x") = axcd
    translate ( "abcd", "bd", "xy") = axcy
    please correct this, rest video is very helpful.
    Thanks ✌🏻

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

    Can you please explain about namespaces ?

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

    Amazing, best

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

    Its good course with Encora1 less complexity

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

    Thanks for this video. Please, how can one use XPath to extract comprehensive product data details from multiple pages of an e-commerce products website? Please reply 🙏

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

      Could you give me one example.
      I was anyways thinking of making a data extraction video from a website

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

    thank you very much

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

    Thank you so much 🙏🙏🙏

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

    Nice one

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

    Awesome content, just one critic, I don't think you understand what word 'particular' means : )

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

    Interesting video to learn xpath. I tried one xpath for icon (...) exist below this video and next to save icon. Xpath I created (//button[@id='button']/yt-icon[@class='style-scope ytd-menu-renderer'])[1] . Not sure Is it a correct way.

    • @Automationzone
      @Automationzone  4 роки тому +1

      For any any video
      //ytd-video-primary-info-renderer//button[@aria-label='More actions']
      Reason :-
      ytd-video-primary-info-renderer = Present for all videos
      button[@aria-label='More actions'] = actions (...) for the video
      If you just give (//button[@aria-label='More actions'])[1] , this can fail if there is another button with the same label, you want to be specific, button for the video only.
      For Specific video
      //*[text()='Complete Xpath from Basic to Advance | 14 Xpath Function | All Xpath AXES | Xpath tutorial']/ancestor::ytd-video-primary-info-renderer//button[@aria-label='More actions']
      //*[text()='VIDEO_TITLE']/ancestor::ytd-video-primary-info-renderer//button[@aria-label='More actions']

    • @thatgirldivaa
      @thatgirldivaa 4 роки тому

      @@Automationzone thanks for reply. How much you prefer xpath from chropath in daily testing.

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

    Thanks man ❤

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

    Top notch Content!

  • @SmrithyKanakkott
    @SmrithyKanakkott 9 місяців тому +1

    In this video, I think you made a mistake in the translate function. translate("abcd","b","x") should result "axcd " but you explained it as bxcd. refer 42:57 .please reply and let me know if i am wrong

    • @Automationzone
      @Automationzone  9 місяців тому +2

      Yes. Ur right.. haha.. apologies for that.
      B is replaced by x..
      And so it's axcd ..
      Ur right 👍

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

    Sir ...is it necessary to know the details of x path in depth...
    Or is it enough to know basic such as //input (@value='Submit')...Please do reply sir...

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

      99% of the time basic will be enough.
      For those 1% u can google and get the answers etc.
      Just learn the basics and start automating

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

      @@Automationzone thank you so much for quick respond...Please make complete series on Automation sir...your voice so nice...and you make hard thing easy...Thank you sir...

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

    When to use xpath and when to use css selector?? Is there any rule

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

      U can decide any one, it's based on your preference.
      I personally choose xpath coz most automation folks have knowledge on xpath
      So it's easy when there is a change in resource

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

    explain about preccendig sibling sir