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!
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.
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.
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!!!
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 :)
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!!!
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..
@@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!
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. ;)
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
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.
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
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 ././?
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();
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
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!
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 )]
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.
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
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.
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']
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!
Thank you so much !!
Yeah this is completely underrated. Frankly better quality than many paid tutorials out there and far better explanations given. Very well done!👏👏
Thanks a lot @brandon
This is a underrated video and am telling you this saved me hours of possible research.
Yep. It helped me so many times with this information
i swear man...i was looking for this...thank u thank u thank u....! none of the youtuber has explained in such depth...!
Thank you so much for such kind words
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!
This is great. Helped me tremendously. Just started a script 2 weeks ago I was lost.
Thanks. Means a lot
This was super super helpful, I will definitely be referring to this as a cheat sheet for a long time!! thanks so much!
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
This video has given me so much confidence... thanks a lot brother
best tutorial ever!!! I searched at lest 30 minutes for something that's easily understandable . Thank you!
Same here thank dude
That heirachy chart was really easy to understand. This covers almost all of xpath..Thanks a lot for making it so easy to understand.
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.
Excellent presentation. I was well organized, easy to understand and follow. You explain concepts clearly and effectively. Much appreciated.
Thank you !!
Thank you so much for this great video! I've read so many tutorials, but you explained it very well. great job
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
One of best video on xpath. Cleared most of my doubts. Thank you.
nice pronunciation and perfect explanation
continue watching at 41:36
Best xpath video so far….thank you for nice presentation!
Thank you so much
i have watched a lot of videos, but this video is unique thanks a lot brother.
Thank you for ur support 😊
Super Video bro.....I was searching for any good video finally got it
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.
It's the best tutorial on Xpaths. Thank you sir!
AWESOME IS THE WORD FOR YOU ... You explained it so well .. I could have not asked for anything else .
Thank you Nanda for you kind words. Do subscribe for more content 👍
Look like deep dive into an ocean 🌀🌊🏊 Hats off for the video
Thats a unique comment. Thanks Progadeesh for your support. So subscribe for more such content 👍
VERY HELPFUL !!! You made it very simple for the beginners. Thank you so much.
Thank you Sulaiman, do subscribe for more such tutorials 👍
superb explaination ..in simple word..
Thank you
Excellent and excellent. Very grateful to You.💕💕
Thanks
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.
Ya.. that's a good thing to have.. will make a note of this.
Perfect xpath course ever. thnx
Welcome @wise geek !
thanks man , you just saved me hours of research
your videos are of great help..plz come up with more frequency
Thanks. I agree, I need to be more consistent.
Excellent teaching
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!!!
Thank you..will try to keep up with new content. Thank you for your motivational words !! 😃
This is the best vid I ever seen.Easy to understand
Best video on the subject ever. Thank you so much!
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 :)
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!!!
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..
@@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!
Thanks.. very well explained and finally found a best video in utube for xpath🤗🤗🤗 👏👏💯
You saved my time and efforts, thank you so much!
Bro you are simply awesome .I got to know many things which i didn't know earlier. appreciate your effort 👏👏.
best tutorial ever. very informative. very nicely explained !!
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. ;)
Perfect Enough
excellent job. contains very good information.
Amazing session
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
Thanks for the good words man!
Your Tutorial is amazing containing all the information which I was confused about. Thank you so much.
Very nice explanation... Easy to understand. Thanks.
Hi. Thank you for such easy explaination. Really appreciate your efforts. 👌😃
Thank you Preeti for your support. Do subscribe for more content 👍
Wow Great Brother 🎉🎉🎉🎉
really awesome training Brother.
Thanks Chandan, do subscribe for more tutorials 👍
Simple and informative liked his effort and teaching skill keep up this good work.
Thanks a lot sir you had helped me lot in clearing my doubts.
This is very well curated. Loved it ❤
Thanks Saurav !! So subscribe for more tutorials 👍
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.
Really cool.. nice explanation...
Thank you! 😊
This video is very helpful
Thank you 😊
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
Thanks a lot !!
bro,
bro, hey bro,
but bro,
dude, bro
bro
Bro , yo bro, yo yo bro yo bro bro
great content. Found everything here.
Great tutorial. Thank you!
Thanks, very informative. And the explanation with examples is awesome
Thank you @Vamshi, i am glad that you found my explanations useful. This encourages me to add more videos to the playlist
Thanks a lot for your clear explanation on xpath.
thank u so much sir.............👌👌👌👌👍👍👍👍👍👍👍
Thanks a lot sir . The video was very informative .
//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.
Super bro thank you soo much really
Welcome 😊
Such a great content!
Thank you !!
best tutorial ever!!
really nice in depth video, thank you , can you make video on css pls
Here u go -
ruclips.net/video/aMLENDW0QKE/видео.html
Good informative video!!
thank you this was very helpful
What a wonderful video ❤
Thank you very very much.
Wow really nice video....
Good session 🙂
Thank you
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 ././?
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();
Best tutorial. thanks
Thank you sirr
Very Learning Video.
Amazing video, thank you!
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
Yes, that was a mistake on my side. Glad u liked the content!!😃
Nice one
You are amazing!!
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!
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 )]
@@Automationzone this worked on the first try, thanks again!
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.
Amazing, best
Awesome content, just one critic, I don't think you understand what word 'particular' means : )
Haha.. I am not sure what to reply 😅
42.25
translate ( "abcd", "b", "x") = axcd
translate ( "abcd", "bd", "xy") = axcy
please correct this, rest video is very helpful.
Thanks ✌🏻
Please pin this comment.
@okeoghenemba8153 it's pinned
Can you please explain about namespaces ?
Thank you so much 🙏🙏🙏
Thank you!!
👍
Bookmark:
👉All elements are 1st child : 20.16
👉Partial match: 28.00
//p[contains(text(),'in successfully')]
(//p[contains(@class, 'css-17n507x')])[1]
thank you very much
Its good course with Encora1 less complexity
Thank you
Super
Thanks man ❤
Thanks a lot😊
explain about preccendig sibling sir
I like it
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
Yes. Ur right.. haha.. apologies for that.
B is replaced by x..
And so it's axcd ..
Ur right 👍
Top notch Content!
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.
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']
@@Automationzone thanks for reply. How much you prefer xpath from chropath in daily testing.