XPath Operators & XPath Functions - and, or, text, contains, starts-with, normalize-space

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

КОМЕНТАРІ • 86

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

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

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

    One of the best video on YT regarding XPath,Thnk u sir for making such a amazing vdios

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

    This is the one I was looking for the best explanations.... Thank you very much

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

    hereafter, i can't able to forget this concept ... Thanks:)

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

    Very good explanation. Easy to understand. Thank you

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

    great work. both of ur tutorials css selector and this one on xpath are simply the best for the one understanding the basics. keep up the good work. appreciable.

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

    I am a beginner and your explanation made it so easy for me.

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

    Your tutorials are very helpful in getting the XPath concepts. Thank you

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

    Your explanation is a way better than any others. Thanks and keep making such a good videos.

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

    Thank you so much sir for explaining imp things related to xpath in such simple manner.
    🙏

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

    Awesome. Best XPath video ever..

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

    Good Explanation Brother .It's Easy to understand the concepts.

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

    clear and precise. This is what everyone wants.

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

    Thank you very much for clearing many doubts.

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

    Thanks for the awesome tutorial video.

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

    Great coaching!!Thanks,

  • @KalindiGuledgudd
    @KalindiGuledgudd 24 дні тому

    Hey i am a beginner. How do you open that search filed while inspecting element i mean to write xpath

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

    Nice explanation. Thanks.

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

    when we use a attribute with normalize-space( ) do we still use @ like //tag[ normalize-space(@attribute)='value')

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

      Not required for text but for any other attribute it is required

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

    Thank you so much for sharing this

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

    How to handle customized drop down ?
    Can you upload one video on that please

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

      Watch this video:
      ua-cam.com/video/jBVtlGTOWu0/v-deo.html

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

    How can I use Suffix with Text()?

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

      U mean starting text or partial text?

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

    Sir is it correct that while using only contains method we need not to give text()? But for starts-with(), normalize-space() methods we must use text()?

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

    One query here is, when you have used //td[text()=5000] , you have not applied any ' or ' ' or " " for the text and still getting the correct value , how is this happening ? I tried to do it this on the Amazon site for highlighting the products which have price more than 30000 but this is not working(of course xpath pattern was different) but if you can shed some light on that then it would be helpful

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

      Yeah sure, send me the details and screenshots on hyadagirireddytutorials@gmail.com

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

    Sir , how to use sum operator in xpath to sum two consecutive td of a tr? Please give syntax

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

      I dont think we can do that using xpath

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

      @@HYRTutorials sir in this case how to do that? Actually I am scraping website data into Excel using selenium, but don't want to use the Excel's ability to do the sum. Is there any way to sum two td of a tr during webscraping using selenium?

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

      Never tried that buddy

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

    Good and clear explanation👌...it will be good if u make videos on CSS selectors also..thanks.👍

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

    Hey, nice vid... Is it possible to find a variable child element of an element found with a relative xpath? i.e. th[text()='xxxx'] give the the text of it's td?

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

      The question is bit confusing, can you ask it clearly?

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

      @@HYRTutorials I thought the question was pretty clear, it’s fine I’ve found the answer now. //th[text()=‘xxxx’]/following::td[1]

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

      @@sykesybwoy ohh cool

  • @NeverStopLearning56
    @NeverStopLearning56 8 днів тому

    Hi Bro,
    Should we need to go with your 3 Hrs telugu tutorial for complete explanation or else this english vedios ?
    Please suggest

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

    I am not able to access the official page H Y R tutorials ???

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

      I just checked and it's working.

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

      @@HYRTutorials yeah now it's working . Actually I have an interview of amazon for automation analyst and they require xpath so this is enough to crack the interview or still there are other topics on xpath , I am a beginner , plz help me

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

      @@dinokundukulam5689 did u checkout my xpath playlist?
      If so these are enough.

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

      @@HYRTutorials Yes I have watched the 4 videos in the playlist

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

      @@dinokundukulam5689 Then it's enough.

  • @RamaKrishna-or2cj
    @RamaKrishna-or2cj 2 роки тому +1

    Can you explain xpath using last() sir??

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

    hi could you plz post , how to write xpath ,if text is not included in any tag. "Service type"

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

      Try any of the following XPath:
      //div/following-sibling::text()
      //div/following-sibling::text()[. = "Service type"]
      //div[@class='mat-list']/following-sibling::text()
      //div[@class='mat-list']/following-sibling::text()[. = "Service type"]

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

    Sir I want all the front page titles as one x path

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

      I guess that is not possible.
      If you want to get the title then u need to lang in that page then only you can get the title.
      So if we want all the titles then we need to navigate to each and evey page then get the title.

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

    Thank you sir very helpful. Sir, today i got to know about a smart editor SelectorsHub for xpath, you might like to try that sir. I found that very helpful in learning and time saving with error message feature and attribute suggestion.

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

      That's good.
      But without having proper knowledge on xpath, one should not start using any add-on.
      Add-on saves your time but there are lot many cases in which you can't use the add-on.
      So it is always advisable to learn about xpath first, then for reducing the time in writing xpath you can use the add-on.

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

      @@HYRTutorials Agreed without having proper knowledge we should not use any tool not just xpath tool but i always found people say this blindly just for xpath tool. While on the other hand we are always using an xpath tool that is devtools

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

      Yes, we are already using the dev tools.
      Dev tools can be used in two ways
      1. Write your own xpath and check whether it is working or not
      2. Copy the auto generated xpath provided by dev tools.
      I encourage using option 1.
      Option 2 is again like a add-on kind of tool only.

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

      @@HYRTutorials i started using this tool SelectorsHub as Naveenautomationlabs recommends that. For option1 which you said, devtools doesn't tell whats wrong in my xpath, devtools doesn't support shadow dom, have to copy attribute values and have to inspect element again and again. Devtools also match as string because of which it gives wrong results. These all things has been taken care in this tool. I would recommend everyone for this tool. We should not alwys follow old things blindly when there is something innovative. I believe initially people would have not accepted selenium also but now everyone is using it.

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

      It looks like a promotion of some particular tool.
      If you read my comment clearly, you will get the point what I'm trying to convey.
      I'm not against or favourable to any tool.
      I'm just saying we should always learn about xpath, then only we should move on to using these add-ons or tools.

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

    Thank you

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

    Thanks sir

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

    slow voice when listening