How to Become Genius in XPath in Selenium - Session -18
Vložit
- čas přidán 5. 06. 2024
- Dynamic XPath in Selenium using Different Approaches:
+How to Find XPath in Chrome browser for Selenium Webdriver
+Learn how to verify Custom XPath in Chrome Browser
+Create and Test your own XPath before using it in Script
+Learn how quickly - you can create custom XPath
+Learn the concept of : parent, preceding-sibling, forward-sibling Xpaths in Selenium
+Learn text(), contains() functions in XPath
+handling dynamic elements in selenium webdriver
+how to write xpath in selenium webdriver
+how to write relative xpath in selenium
+dynamic xpath in selenium using different approaches
+absolute xpath in selenium
+how to write xpath manually in selenium webdriver
+how to write absolute xpath in selenium
selenium xpath java
======================================================
Some Good Examples:
++link: Features
1. //a[text()='Features']
2. //a[contains(text(),'Features')] --recommended
++button:
//button[@type='button' and @class='btn']
//button[contains(text(),'Sign Up')]
//div[@class='dropdown']//button[@type='button' and @class='btn btn-secondary dropdown-toggle' and @id='dropdownMenuButton']
//button[@id='dropdownMenuButton']
++preceding-sibling:
//a[text()='test2 test2']//parent::td[@class='datalistrow']//preceding-sibling::td[@class='datalistrow']//input
++parent & preceding-sibling:
//a[text()='test2 test2']//parent::td[@class='datalistrow']//preceding-sibling::td[@class='datalistrow']//input[@name='contact_id']
======================================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
czcams.com/users/Naveen%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
======================================================
Let's join our Automation community for some amazing knowledge sharing and group discussion. Plz join via this link on Telegram: t.me/joinchat/COJqZQ4enmEt4JA...
~-~~-~~~-~~-~
Follow my Site/Blog: www.naveenautomationlabs.com
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
• Selenium & Automation ...
~-~~-~~~-~~-~ Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
czcams.com/users/Naveen%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB7...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautomationlabs.com/p...
API Course: www.naveenautomationlabs.com/p...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautomationlabs.com
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة - Věda a technologie
Nowdays, everyone is an online intellectual teacher but very few have the skill to deliver the topic in most appropriate & understandable format. The way you explained, is absolutely brilliant. Examples are appropriate, very much understandable and moreover my concept on XPATH is now very much clear. Thank u .......Like to banta hai boss
I'm into this automation field for more than 4 or 5 years, still shameful for not knowing how to create xpaths, all because of adons like firebug, selectorshub etc which made our life easier, but unfortunately, the company blocked those adon usages and now struggled to create xpath and after a long search found this beautiful video. You are a lifesaver man. Thanks for showing us the marvel of creating xpaths.
If someone asks me who was your fav teacher in your school/college, I'll say "It's Naveen's... from CZcams" :-)
Wowwwww😊😊😊
Naveen had 747 Subscribers when this video was recorded. Now he has 344K subscribers. Damn! What a progress.!! You deserve all the success in life! A true inspiration and Leader for all of us!!
Thanks bro! Glad that you liked it.
Excellent! Your distinguishing characteristic is that you make the complex things look easy. Thank you!
I didn't find anyone till now explaining xpath with such ease. Really appreciate your expertise. Thank you for all your videos. You are helping thousands of people like me to learn.
Absolutely brilliant! Loved the sibling part! Thank you so much!
Naveen I swear i was struggling literally with all the bullying one side and not knowing how to pass this phase of not been able to find the x-path....you have definitely given me the right guidance. Very precise and clear. Thanks alot to help the needy like me...three cheers to you. Teach a lot and these good wishes will get your existence meaningful.Thanks bro
I felt as I was having a 1 to 1 meeting with the instructor. Clearly explained. I started with zero knowledge about xpath but now I am equipment with a great useful information. Thanks Naveen!!
totally agree
Oh man!!!
I was learning xPath concept for the first time ever and you made me feel like it's the simplest thing I ever have learned. You're truly a genius man. Moreover, you're just boosting confidence by iterating that if someone knows xPath well then 90% of selenium is covered, I like it :D :D
i dont mean to be so offtopic but does anyone know of a tool to get back into an instagram account?
I was stupid forgot my account password. I would love any tricks you can offer me.
entire selenium in just 39 mins..mind blowing!
Seriously you are awesome Mr. Naveen when explaining concepts .!!!!
Hats off ...
super good explanation, Accessing the components that are present in the table directly with a custom xpath is awesome!
You are a saviour !! i am new to selenium and was struggling with xpath. I am glad i found your video. Thankyou so much :)
Thank you so much naveen for this xpath series.actually i m silent member of this channel from last 6 months and your all videos are really helpful and easy understandable.keep continue .
Brilliant, loved the checkbox sibling part - nicely explained throughout the video. Well done
I learned more in 40 minutes here than I did in two weeks everywhere else. Thank you!
Thanks for watching :)
Nowdays, everyone is an online intellectual teacher but very few have the skill to deliver the topic in most appropriate & understandable format. The way you explained, is absolutely brilliant. Examples are appropriate, very much understandable and moreover my concept on XPATH is now very much clear. Thank u .......Like & Subscribe to banta hai boss
Naveen. You are a genius. Nice explanation of each and every aspect. Because of you I have learnt and created a framework with POM design.
Thanks a lot sir .. creating customize xpath is a big headache and u just give us a pill to overcome that.... and nice example of dynamic table handing .
Absolutely loved the way you teach! Hats off to the simple way of approach you have! 🙌🏻
Just crazy genius!!! Thank you for that - First time hearing about XPath, and you explained like a genius for a 4 years old child!! Keep that spirit brother :)
Brilliant and yet simple and effective explanation on XPath Naveen
Just learnt the xpath concept, that too within 40 minutes! You are a superstar!!
I never in my dreams thought that I would ever understand this concept of writing xpath by self. I knew it was important and was still using absolute XPath by just copying it. But today took the courage and went through this session of yours, I regret not doing it sooner. Thank you so much Naveen Sir. May My Krishna bless you Abundantly. :-)
I am glad that, finally you learnt how to create xpath.
what its been 39 mins and it feels like 2 min ur explaination is so damn good and easy to catch i love it homie
Really impressed with parent - sibling- child xpth sir... Really really awesome... Keep rocking
you got talent bro, one of the best instructors i ever watch
Exactly it was a great explanation of writing xpath. Thanks for your clear mentoring.
Thanks Naveen for the video, very details and very helpful training.
You explained it way better than my instructor. Hats off and Thank you.
Wow! Really needed this. I wanted to learn the parent and sibling part!
Excellent video. Everything is explained clearly. Naveen explains XPATH wonderfully
1 Word . Brilliant. Naveen techniques. Best Mentor.
Hey Naveen, never came across preceding and forward siblings earlier. Brilliant, Thanks for sharing.
I rarely comment on videos but I think I should give it for this guy, amazing man.
beautiful explanation, really u should be proud of yourself , u learnt it and making learning others in same way..awesome job
Thanks Naveen.. Your are awesome and the way you you will anything in Selenium gives me confidence !!
Father to Uncle and Uncle to cousin, awesome explanation.
I like to see how you have grow so fast +20k subs in a year, Congrats
Hello sir.
I have watched all playlist in your channel related to selenium automation thank you for sharing knowledge.
Thank you very much sir.
Спасибо Алексей за Вашу работу!
Awesome Naveen. Thanks for explaining us very clearly with examples.
This is by far very resource full video on Xpath. I appreciate very much. Thank you for sharing and letting the knowledge pass on
Where have you been all this time?....so glad I found your channel....super cool explanations!!
tq Naveen for sharing your knowledge and tricks...amazing teaching skills u got.
Superb Explanation Boss, Awesome way to find xPath with any complexity. Hats off to you. Thank you for sharing this knowledge with us.
Superb video with awesome explanation.. Thanks a ton Naveen..
Very useful video for sure!!
Highly recommended!!
wow!! first time I understood the concept of xpath. Thank you
Love this! I feel smarter. Thank you! Head and shoulders above all other xpath trainings on the web. So simple and well explained.
Thank you so much for this video. we are so lucky to have mentor like you.you make our life so easy...God bless you...
Great session Naveen. Appreciate your effort. Very very helpful and builds confidence
Excellent way of teaching. Appreciate that. :)
Hi Naveen,
This is one of the amazing video on Xpath. Very well explained. Thanks for your contribution in the community
Simple and best explanation ...Thank u very much ... 👍👍
Naveen, you made this topic so simple to understand.
This is awesome. You are an excellent trainer. You have an amazing talent. Keep up the good work
Superb! Explanation! Thank you so much sir :)
Thanks a lot Naveen, this really helped me a lot in understanding the concept. Now I could able to write xpath very easily. One questions, are there any tutorials from you describing about the framework and a real time project?
We are proud of you that you are our mentor.
this is the best stuff i ever seen on xpath, really thanx to creator , helped alot ...!!!
I am so proud of you Naeen, you are a lifesaver!!!!
Thats awesome bro. I have actually subscribed for the first time to someone after seeing an awesome video.
Your explanation is very clear and marvelous. Superb
Normally I am using Firepath for creating and verifying xpath. But this techniq is quite simple now only I recognized. Thanks for this video.
It's clear explanation..
Thanks Naveen for clear each point for getting correct xpath.
Superb explanation.... everyone can understand easily...thank uuu soo much...
Naveen, all i can say is thank you. Thank u soo much.
uncle td wow what a xpath man..hatsoff to u..
Very very good explanation!!! Thank you very much for this video!!!
Perfect explanation.. Keep up the good work
Really outstanding content.thanks a lot
Hi Naveen, I was watching this video to solve this below code XPath issue.
Please select a title
Please select a title
//*[@id="titleCode.errors"]
in chrome it was showing that 1of 2.
at 21.23 I thought I got idea , that I can solve this issue.
So before completed this video, I subscribed your channel, and writing comment.
thank you a lot !!
Hi Naveen ! you are genius👍
Your videos are very helpful
Thank you! Thank you! Thank you!
Hi NAveen,
U You are simply amazing, easy slang and outstanding explanation.
Hello Navin, this is excellent tutorial. Thank you.. Following python code works for clicking check box with new website changes:
check_box_element = driver.find_element_by_xpath("//td[text()='']//parent::tr//preceding-sibling::td//div//input[@type='checkbox']")
actions = ActionChains(driver)
actions.move_to_element(check_box_element).click().perform()
Replace: with the name in the contacts table.
Learnt something new today great job. Parent and preceding-sibling
Awesome video Naveen.
I have a question --> How can we select all the checkbox for a particular name under contacts tab, when there are multiple contacts present with same name. (freecrm.com)
have tried using findelements, and storing all the records for desired name in List, but not able to reach the checkbox of that contact inside for loop as checkbox is under preceding .
Very well explained. Thank you very much!!
Really nice, well understood!!
@Naveen Thanks for this video. I liked your way of simplified explanation for taking dynamic xpath, particularly most useful concept like ++preceding-sibling:
//a[text()='test2 test2']//parent::td[@class='datalistrow']//preceding-sibling::td[@class='datalistrow']//input .
Can we put single slash before input ? Will it work?
Thanks Naveen sir you are the fuel for my life.
i wish that i would get a chance to work with u SIR...!!!!!!
Wow Naveen! Brilliant Explaination on XPath
It’s really cool.. Thank you so much for sharing more info about xPath.
Awesome Naveen thank you....With this video i started watching your other videos of channel and subscribed also :)
Just Love this!!
Lovely way of explaining
This is really appreciable man!!!
Thanks Im telling all my friends how I am now a certified genius with xpath now after watching this video.
I was so seriously watching this video and then comes... isn't this simple, instead of going for 2 for-loops and all that 'drama'...😆
Thanks for this video...😊
expanation is superb, best video on xpath
Very good content
Everyone covered generally. This is really detailed and must see video for selenium.
Hi Naveen Sir
Your videos are very helpful for all beginners. If you are able to make video for all Xpath Axes then, I really thankful to you in Advance.
when we have many same Xpaths and we need to select a particular one. what we do..
Awesome,great video....thnks naveen.
I love your teaching style Naveen ! God bless you !
I felt like I need to first automate liking the 'like button' for all your videos. Thanks !!
Vwey well explained Naveen.. Superb
Great job...Thanks Naveen
Thank you. It was very helpful !
Hello Naveen Sir, You are very talented. Your all videos are nice and so helpful to prepare for interviews as well as to work into automation testing. A small correction- in this video at 29.49 its 'following sibling' not 'forward sibling'. :)
Hi naveen thank you so much very interesting and easy to learn