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.
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()?
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 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?
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 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
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"]
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.
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.
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.
@@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
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.
@@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.
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.
↔️ XPath (XML Path Language) Playlist Link: bit.ly/2RlLdkw
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
One of the best video on YT regarding XPath,Thnk u sir for making such a amazing vdios
Thanks buddy 😊
This is the one I was looking for the best explanations.... Thank you very much
Thanks buddy 😊
hereafter, i can't able to forget this concept ... Thanks:)
Cool.
Keep rocking buddy
Very good explanation. Easy to understand. Thank you
Thanks buddy 😊
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.
Thankyou 😊
I am a beginner and your explanation made it so easy for me.
Great to hear!
Your tutorials are very helpful in getting the XPath concepts. Thank you
Thankyou 😊
Your explanation is a way better than any others. Thanks and keep making such a good videos.
So nice of you
Thank you so much sir for explaining imp things related to xpath in such simple manner.
🙏
Thanks and welcome
nice
Awesome. Best XPath video ever..
Thanks buddy 😊
Good Explanation Brother .It's Easy to understand the concepts.
Thanks buddy 😊
clear and precise. This is what everyone wants.
Thankyou
Thank you very much for clearing many doubts.
Happy to help
Thanks for the awesome tutorial video.
Thankyou, keep watching 😊
Great coaching!!Thanks,
Glad you liked it!
Hey i am a beginner. How do you open that search filed while inspecting element i mean to write xpath
Nice explanation. Thanks.
Thankyou 😊
when we use a attribute with normalize-space( ) do we still use @ like //tag[ normalize-space(@attribute)='value')
Not required for text but for any other attribute it is required
Thank you so much for sharing this
Welcome buddy 😊
How to handle customized drop down ?
Can you upload one video on that please
Watch this video:
ua-cam.com/video/jBVtlGTOWu0/v-deo.html
How can I use Suffix with Text()?
U mean starting text or partial text?
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()?
Text function can be used with all those functions
Ok tq sir my doubt was cleared
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
Yeah sure, send me the details and screenshots on hyadagirireddytutorials@gmail.com
Sir , how to use sum operator in xpath to sum two consecutive td of a tr? Please give syntax
I dont think we can do that using xpath
@@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?
Never tried that buddy
Good and clear explanation👌...it will be good if u make videos on CSS selectors also..thanks.👍
Yeah sure
CSS Selectors videos playlist:👇
🔗 bit.ly/2Rn0IbD
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?
The question is bit confusing, can you ask it clearly?
@@HYRTutorials I thought the question was pretty clear, it’s fine I’ve found the answer now. //th[text()=‘xxxx’]/following::td[1]
@@sykesybwoy ohh cool
Hi Bro,
Should we need to go with your 3 Hrs telugu tutorial for complete explanation or else this english vedios ?
Please suggest
I am not able to access the official page H Y R tutorials ???
I just checked and it's working.
@@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
@@dinokundukulam5689 did u checkout my xpath playlist?
If so these are enough.
@@HYRTutorials Yes I have watched the 4 videos in the playlist
@@dinokundukulam5689 Then it's enough.
Can you explain xpath using last() sir??
You can watch this video buddy
ua-cam.com/video/ilTFwMV3lHk/v-deo.html
Tqu👍
hi could you plz post , how to write xpath ,if text is not included in any tag. "Service type"
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"]
Sir I want all the front page titles as one x path
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.
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.
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.
@@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
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.
@@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.
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.
Thank you
Thanks sir
slow voice when listening
Slow or low?