How to Become Genius in XPath in Selenium - Session -18

Sdílet
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

Komentáře • 511

  • @prasantamajumder27
    @prasantamajumder27 Před 2 lety +32

    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

  • @ajithashokkumar5019
    @ajithashokkumar5019 Před 2 lety +5

    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.

  • @nilstoned7593
    @nilstoned7593 Před 2 lety +45

    If someone asks me who was your fav teacher in your school/college, I'll say "It's Naveen's... from CZcams" :-)

  • @SabiUddin
    @SabiUddin Před 7 měsíci +5

    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!!

  • @testinginsights-muktasharma

    Excellent! Your distinguishing characteristic is that you make the complex things look easy. Thank you!

  • @miteshgujarathi5447
    @miteshgujarathi5447 Před 4 lety +11

    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.

  • @rkslounge8117
    @rkslounge8117 Před 4 lety +3

    Absolutely brilliant! Loved the sibling part! Thank you so much!

  • @aishwaryavangalkrishnakuma1704

    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

  • @sravankumar-zg3tv
    @sravankumar-zg3tv Před 4 lety +32

    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!!

  • @ajitavchakrabarty
    @ajitavchakrabarty Před 3 lety +29

    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

    • @jadenstefan9231
      @jadenstefan9231 Před 2 lety

      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.

  • @user-xg3bi8ks6e
    @user-xg3bi8ks6e Před 8 měsíci +2

    entire selenium in just 39 mins..mind blowing!

  • @sivacva88
    @sivacva88 Před 6 lety +3

    Seriously you are awesome Mr. Naveen when explaining concepts .!!!!
    Hats off ...

  • @SuperSunilc
    @SuperSunilc Před 6 lety +16

    super good explanation, Accessing the components that are present in the table directly with a custom xpath is awesome!

  • @karishmazsweblog5561
    @karishmazsweblog5561 Před 3 lety +3

    You are a saviour !! i am new to selenium and was struggling with xpath. I am glad i found your video. Thankyou so much :)

  • @priyadaksheshpatel8384
    @priyadaksheshpatel8384 Před 2 lety +1

    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 .

  • @abhedpatil
    @abhedpatil Před 5 lety +14

    Brilliant, loved the checkbox sibling part - nicely explained throughout the video. Well done

  • @SatouSei13
    @SatouSei13 Před 4 lety +12

    I learned more in 40 minutes here than I did in two weeks everywhere else. Thank you!

  • @prasantamajumder27
    @prasantamajumder27 Před 2 lety +1

    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

  • @100rabh_dixit
    @100rabh_dixit Před 6 lety +3

    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.

  • @pradyumnnasatapathy8199
    @pradyumnnasatapathy8199 Před 6 lety +2

    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 .

  • @kashifrayanahmed8473
    @kashifrayanahmed8473 Před 2 lety +1

    Absolutely loved the way you teach! Hats off to the simple way of approach you have! 🙌🏻

  • @Rodrigo_Bodhisava
    @Rodrigo_Bodhisava Před rokem +3

    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 :)

  • @gopalreddy6801
    @gopalreddy6801 Před 5 lety +2

    Brilliant and yet simple and effective explanation on XPath Naveen

  • @DanishAnsari-hw7so
    @DanishAnsari-hw7so Před 2 lety +1

    Just learnt the xpath concept, that too within 40 minutes! You are a superstar!!

  • @mithaleepardeshi4893
    @mithaleepardeshi4893 Před 4 lety +7

    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. :-)

  • @karanmartinn3970
    @karanmartinn3970 Před 5 lety +3

    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

  • @electronics9414
    @electronics9414 Před 6 lety +1

    Really impressed with parent - sibling- child xpth sir... Really really awesome... Keep rocking

  • @motazhejaze38
    @motazhejaze38 Před 6 měsíci +1

    you got talent bro, one of the best instructors i ever watch

  • @kamilgurgener6631
    @kamilgurgener6631 Před 6 lety +2

    Exactly it was a great explanation of writing xpath. Thanks for your clear mentoring.

  • @chauphan2046
    @chauphan2046 Před 6 lety +3

    Thanks Naveen for the video, very details and very helpful training.

  • @adnanfaisal1085
    @adnanfaisal1085 Před 4 lety +1

    You explained it way better than my instructor. Hats off and Thank you.

  • @snehaparaye5101
    @snehaparaye5101 Před 3 lety +2

    Wow! Really needed this. I wanted to learn the parent and sibling part!

  • @shaanwalia2984
    @shaanwalia2984 Před 2 lety +1

    Excellent video. Everything is explained clearly. Naveen explains XPATH wonderfully

  • @ramyaraghunathan6347
    @ramyaraghunathan6347 Před rokem +1

    1 Word . Brilliant. Naveen techniques. Best Mentor.

  • @GirishAbhi
    @GirishAbhi Před 5 lety +10

    Hey Naveen, never came across preceding and forward siblings earlier. Brilliant, Thanks for sharing.

  • @niteshmishra9987
    @niteshmishra9987 Před rokem +1

    I rarely comment on videos but I think I should give it for this guy, amazing man.

  • @stockshare530
    @stockshare530 Před 4 lety +2

    beautiful explanation, really u should be proud of yourself , u learnt it and making learning others in same way..awesome job

  • @kgip11
    @kgip11 Před 3 lety +1

    Thanks Naveen.. Your are awesome and the way you you will anything in Selenium gives me confidence !!

  • @SharadTalekar
    @SharadTalekar Před 4 lety +8

    Father to Uncle and Uncle to cousin, awesome explanation.

  • @LeXranger
    @LeXranger Před 6 lety +2

    I like to see how you have grow so fast +20k subs in a year, Congrats

  • @poojakamble2361
    @poojakamble2361 Před 5 lety

    Hello sir.
    I have watched all playlist in your channel related to selenium automation thank you for sharing knowledge.
    Thank you very much sir.

  • @ekaterinagerman3566
    @ekaterinagerman3566 Před rokem

    Спасибо Алексей за Вашу работу!

  • @vasuki18
    @vasuki18 Před 3 lety +1

    Awesome Naveen. Thanks for explaining us very clearly with examples.

  • @janakiramp352
    @janakiramp352 Před 8 měsíci

    This is by far very resource full video on Xpath. I appreciate very much. Thank you for sharing and letting the knowledge pass on

  • @andrea5700045
    @andrea5700045 Před 5 lety +2

    Where have you been all this time?....so glad I found your channel....super cool explanations!!

  • @sridevireddy1371
    @sridevireddy1371 Před 6 lety +1

    tq Naveen for sharing your knowledge and tricks...amazing teaching skills u got.

  • @samirbamania5249
    @samirbamania5249 Před 6 lety +1

    Superb Explanation Boss, Awesome way to find xPath with any complexity. Hats off to you. Thank you for sharing this knowledge with us.

  • @sugandhajain7727
    @sugandhajain7727 Před 6 lety +2

    Superb video with awesome explanation.. Thanks a ton Naveen..
    Very useful video for sure!!
    Highly recommended!!

  • @triptiagrawal3406
    @triptiagrawal3406 Před 3 lety +1

    wow!! first time I understood the concept of xpath. Thank you

  • @zollamichalak4058
    @zollamichalak4058 Před 4 lety +2

    Love this! I feel smarter. Thank you! Head and shoulders above all other xpath trainings on the web. So simple and well explained.

  • @mariabajwa8632
    @mariabajwa8632 Před 5 lety

    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...

  • @jaykatti
    @jaykatti Před 6 lety +1

    Great session Naveen. Appreciate your effort. Very very helpful and builds confidence

  • @sohailreyaz9822
    @sohailreyaz9822 Před 6 lety +2

    Excellent way of teaching. Appreciate that. :)

  • @NaeemMuhammad22
    @NaeemMuhammad22 Před rokem +1

    Hi Naveen,
    This is one of the amazing video on Xpath. Very well explained. Thanks for your contribution in the community

  • @myyoutub2010
    @myyoutub2010 Před 4 lety +2

    Simple and best explanation ...Thank u very much ... 👍👍

  • @shitalbhaskarwar8047
    @shitalbhaskarwar8047 Před 5 lety +1

    Naveen, you made this topic so simple to understand.

  • @swarnalatha2248
    @swarnalatha2248 Před 2 lety

    This is awesome. You are an excellent trainer. You have an amazing talent. Keep up the good work

  • @ravikumarvemula4793
    @ravikumarvemula4793 Před 5 lety +2

    Superb! Explanation! Thank you so much sir :)

  • @anilkumar-rm2mb
    @anilkumar-rm2mb Před 5 lety +3

    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?

  • @meghasandesam
    @meghasandesam Před 5 lety +1

    We are proud of you that you are our mentor.

  • @hunkcs395
    @hunkcs395 Před 5 lety +1

    this is the best stuff i ever seen on xpath, really thanx to creator , helped alot ...!!!

  • @JaspreetKaur-hl2sw
    @JaspreetKaur-hl2sw Před 2 lety +1

    I am so proud of you Naeen, you are a lifesaver!!!!

  • @Rohitk2085
    @Rohitk2085 Před 6 lety +1

    Thats awesome bro. I have actually subscribed for the first time to someone after seeing an awesome video.

  • @BalaMurugan-xm8gi
    @BalaMurugan-xm8gi Před 6 lety +1

    Your explanation is very clear and marvelous. Superb

  • @premkumarms7607
    @premkumarms7607 Před 5 lety

    Normally I am using Firepath for creating and verifying xpath. But this techniq is quite simple now only I recognized. Thanks for this video.

  • @shivamjain5327
    @shivamjain5327 Před 4 lety

    It's clear explanation..
    Thanks Naveen for clear each point for getting correct xpath.

  • @priyashreekantidarshinee2735

    Superb explanation.... everyone can understand easily...thank uuu soo much...

  • @padmapaddhu1669
    @padmapaddhu1669 Před 3 lety +1

    Naveen, all i can say is thank you. Thank u soo much.

  • @dhirendradubey7374
    @dhirendradubey7374 Před rokem +1

    uncle td wow what a xpath man..hatsoff to u..

  • @katerynakennedy2335
    @katerynakennedy2335 Před 4 lety +1

    Very very good explanation!!! Thank you very much for this video!!!

  • @sahanthaveesha2004
    @sahanthaveesha2004 Před 5 lety +1

    Perfect explanation.. Keep up the good work

  • @md.alkarim7774
    @md.alkarim7774 Před 2 lety +1

    Really outstanding content.thanks a lot

  • @siddharthbhardwaj4747
    @siddharthbhardwaj4747 Před 5 lety +4

    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 !!

  • @TheHitixa
    @TheHitixa Před 5 lety +2

    Hi Naveen ! you are genius👍
    Your videos are very helpful
    Thank you! Thank you! Thank you!

  • @sandeeprajpatnala9067
    @sandeeprajpatnala9067 Před 5 lety +1

    Hi NAveen,
    U You are simply amazing, easy slang and outstanding explanation.

  • @jaiminbhavsar7541
    @jaiminbhavsar7541 Před 4 lety

    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.

  • @priteshms
    @priteshms Před 3 lety

    Learnt something new today great job. Parent and preceding-sibling

  • @007getaks
    @007getaks Před 5 lety +3

    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 .

  • @madhavisunkara9151
    @madhavisunkara9151 Před 6 lety +1

    Very well explained. Thank you very much!!

  • @Gypsy_Diaries
    @Gypsy_Diaries Před 6 lety +1

    Really nice, well understood!!

  • @KrishnaReddy-mo8tr
    @KrishnaReddy-mo8tr Před 6 lety +3

    @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 .

  • @subhrakantamishra847
    @subhrakantamishra847 Před 4 lety +1

    Thanks Naveen sir you are the fuel for my life.
    i wish that i would get a chance to work with u SIR...!!!!!!

  • @ReddyParvathi
    @ReddyParvathi Před 3 lety +1

    Wow Naveen! Brilliant Explaination on XPath

  • @deepunair7554
    @deepunair7554 Před 4 lety

    It’s really cool.. Thank you so much for sharing more info about xPath.

  • @princeharsha3451
    @princeharsha3451 Před 6 lety +1

    Awesome Naveen thank you....With this video i started watching your other videos of channel and subscribed also :)

  • @Jayshree_jaysh
    @Jayshree_jaysh Před 2 lety

    Just Love this!!
    Lovely way of explaining

  • @samirkumarpadhi
    @samirkumarpadhi Před 6 lety +1

    This is really appreciable man!!!

  • @serving_tray5365
    @serving_tray5365 Před 2 lety

    Thanks Im telling all my friends how I am now a certified genius with xpath now after watching this video.

  • @srikalanair6156
    @srikalanair6156 Před 2 lety +1

    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...😊

  • @sameernaqvi3611
    @sameernaqvi3611 Před 6 lety +1

    expanation is superb, best video on xpath

  • @ankitkul.4034
    @ankitkul.4034 Před 2 lety

    Very good content
    Everyone covered generally. This is really detailed and must see video for selenium.

  • @KnowledgeHub74
    @KnowledgeHub74 Před 5 lety +4

    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.

    • @investmentgeek21
      @investmentgeek21 Před 5 lety

      when we have many same Xpaths and we need to select a particular one. what we do..

  • @srikanthreddy2245
    @srikanthreddy2245 Před 5 lety +1

    Awesome,great video....thnks naveen.

  • @janarthanasp
    @janarthanasp Před 10 měsíci

    I love your teaching style Naveen ! God bless you !

  • @varunmaheshwari2251
    @varunmaheshwari2251 Před 4 lety

    I felt like I need to first automate liking the 'like button' for all your videos. Thanks !!

  • @ishan1400
    @ishan1400 Před 6 lety +1

    Vwey well explained Naveen.. Superb

  • @sudhansumohanty3101
    @sudhansumohanty3101 Před 6 lety +1

    Great job...Thanks Naveen

  • @taieb.elamri
    @taieb.elamri Před 4 lety +2

    Thank you. It was very helpful !

  • @anupamasundarkar7548
    @anupamasundarkar7548 Před 4 lety +2

    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'. :)

  • @sindhupriya8535
    @sindhupriya8535 Před 5 lety +1

    Hi naveen thank you so much very interesting and easy to learn