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

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

КОМЕНТАРІ • 517

  • @nilstoned7593
    @nilstoned7593 3 роки тому +50

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

  • @prasantamajumder27
    @prasantamajumder27 3 роки тому +34

    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

  • @ajitavchakrabarty
    @ajitavchakrabarty 3 роки тому +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 3 роки тому

      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.

  • @SabiUddin
    @SabiUddin 11 місяців тому +7

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

  • @ajithashokkumar5019
    @ajithashokkumar5019 2 роки тому +6

    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.

  • @testinginsights-muktasharma
    @testinginsights-muktasharma 6 років тому +6

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

  • @garimabhatia9259
    @garimabhatia9259 6 років тому +2

    Hi Naveen, i am stuck in finding a xpath AND NEED our suggestions. Kindly Contact

  • @Rodrigo_Bodhisava
    @Rodrigo_Bodhisava 2 роки тому +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 :)

  • @abhedpatil
    @abhedpatil 6 років тому +14

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

  • @md.alkarim7774
    @md.alkarim7774 3 роки тому +1

    Really outstanding content.thanks a lot

  • @miteshgujarathi5447
    @miteshgujarathi5447 4 роки тому +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.

  • @bluehoney5071
    @bluehoney5071 2 роки тому +2

    best XPath video ever

  • @100rabh_dixit
    @100rabh_dixit 6 років тому +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.

  • @TheHitixa
    @TheHitixa 5 років тому +2

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

  • @naveenautomationlabs
    @naveenautomationlabs  7 років тому

    Naveen AutomationLabs - Channel Full Playlists on UA-cam:
    Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    ua-cam.com/users/Naveen%20AutomationLabs?sub_confirmation=1
    Playlists URLs:
    =========
    1. Core Java:
    ua-cam.com/play/PLFGoYjJG_fqqyIj2ht0aHMx_HnGX3ZFEx.html
    Desc:
    Learn Core Java Step By Step. These tutorials videos are specially designed for beginners.
    ==========
    2. Selenium WebDriver:
    ua-cam.com/play/PLFGoYjJG_fqo4oVsa6l_V-_7-tzBnlulT.html
    Desc:
    Learn Selenium WebDriver (Selenium 3.x) from the beginning.
    If you are a Manual tester who is eager to upgrade to the Automation skills.
    1. Learning to automate Real-time project scenarios.
    2. Learn to convert Manual test case to Automation script.
    3. Framework design with respect to Real-time projects.
    4. Learn end to end automation using Continous Integration by Jenkins tool.
    ============
    3. TestNG:
    ua-cam.com/play/PLFGoYjJG_fqp25buwscrsKA5q8qsLsuUy.html
    Desc:
    Learn TestNG Framework Step by Step. TestNg integration with Selenium WebDriver
    ============
    4. Learn Dynamic Xpath:
    ua-cam.com/play/PLFGoYjJG_fqoY3PNcMLjp4pJZSXUCHeiB.html
    Desc:
    Do you want to have expertise in Selenium, Learn Dynamic XPath!
    Become a genius in XPath and crack interview like a Pro!!
    ===========
    5. Data Driven Framework:
    ua-cam.com/play/PLFGoYjJG_fqqlW6swKwutBOVU2O8k_JHT.html
    Desc:
    Learn how to implement Data Driven Framework by using Apache POI API and TestNG
    ===========
    6. Page Object Model (POM):
    ua-cam.com/play/PLFGoYjJG_fqq6cHeqfsDes3pdVh3kpl74.html
    Desc:
    Page Object Model (POM) Design With Selenium WebDriver:
    +Learn Page Object Model Step by Step
    +POM design - Architecture & Pattern
    +What is Page Chaining Model
    +Use of PageFactory API in Selenium
    ===========

    • @pranavgupta4577
      @pranavgupta4577 7 років тому +1

      I really want to know, from where you learn or know these amazing tricks. This is simply awesome. I am addicted to your videos .Keep up the good works brother.

  • @AbhishekSharma-nm1ok
    @AbhishekSharma-nm1ok 6 років тому +1

    Hi Naveen, I am using chrome version 63.0.3239.84 and I am not getting this option on ctrl F to find by string selector or xpath. When I do ctrl F what I get instead is 'Find string in logs'. How do I get the option to search by xpath? please guide.

  • @anilkumar-rm2mb
    @anilkumar-rm2mb 5 років тому +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?

  • @sravankumar-zg3tv
    @sravankumar-zg3tv 4 роки тому +33

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

  • @KrishnaReddy-mo8tr
    @KrishnaReddy-mo8tr 6 років тому +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 .

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

      Can we put single slash before input ? Will it work?

  • @karishmazsweblog5561
    @karishmazsweblog5561 4 роки тому +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 :)

  • @SatouSei13
    @SatouSei13 5 років тому +12

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

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

    I am late for the channel however so far the best content creator and influencer regarding automation :)
    Thanks Bro

  • @myyoutub2010
    @myyoutub2010 5 років тому +2

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

  • @kirtitade4533
    @kirtitade4533 6 років тому +10

    Hi Naveen,
    Could you please help me to know who to locate an element with xpath when no identifier is available

    • @digikiwam
      @digikiwam 4 роки тому +4

      if the element doesn't have any identifiable qualities, look at it's parent and go for there. Every element has a tag of some sort. Go up the tree to a parent with some identifiable properties and then go from there. Or, find a sibling element that you can recognize and use ::following-sibling to get the element you want.

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

      While development of application the developer should consider and place a unique identity on all components ( it should some protocol to place a identification) .

  • @chauphan2046
    @chauphan2046 6 років тому +3

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

  • @GirishAbhi
    @GirishAbhi 5 років тому +10

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

  • @SuperSunilc
    @SuperSunilc 7 років тому +16

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

  • @andrea5700045
    @andrea5700045 5 років тому +2

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

  • @karanmartinn3970
    @karanmartinn3970 6 років тому +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

  • @aishwaryavangalkrishnakuma1704
    @aishwaryavangalkrishnakuma1704 2 роки тому +2

    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

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

    super explanation your rocking....

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

    Video helped in understanding implementing xpath,xpath axes concepts. Thanks a Lot.

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

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

  • @sachinjaiswal9054
    @sachinjaiswal9054 6 років тому +1

    For a pega application how to get xpath in IE? MRI tool doesn't open at all. Another option like GetXpath1,GetXapth2 is not providing correct xpath. Any idea?

  • @sugandhajain7727
    @sugandhajain7727 6 років тому +2

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

  • @sumayazamasyed8982
    @sumayazamasyed8982 6 років тому +1

    Hi Naveen, except for username and password no customised xpath is working for me... please help

  • @anupamasundarkar7548
    @anupamasundarkar7548 5 років тому +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'. :)

  • @mukundanvenkatesan
    @mukundanvenkatesan Рік тому +2

    entire selenium in just 39 mins..mind blowing!

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

    Awesome teaching skills dude

  • @MyWalia
    @MyWalia 6 років тому +1

    departure city is a dynamic input button, i have written By.xpath("//input[starts-with(@id, 'airports-inline-orig-')]")).click(); but its not working..wil really appreciate ur help..Thanks

  • @priscilla11731
    @priscilla11731 6 років тому +1

    Hi trust you are well,inspect element on my chrome is disabled,which version are you using?

  • @stockshare530
    @stockshare530 4 роки тому +2

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

  • @TechnicalGuru-dg3fw
    @TechnicalGuru-dg3fw 6 років тому +1

    @Naveen Sir, Wht are the Termology used in Organisations/Company for Software Testing... Like Sprint, Scrum, Which Server used for Testing. Who I'll decide Saverity/Priority .
    Please make a video for such type of things.
    Thanks

    • @thiery572
      @thiery572 6 років тому

      "Who I'll decide Saverity/Priority ".
      Generally the manager.

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

    Sir what if I have same names of Checkboxes.. Pls reply?

  • @vimalverma3923
    @vimalverma3923 6 років тому +1

    what is the difference between xpath and csssector , how they are working and what is different approach both follow to find element.

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

    Awesome bro, Thanks a lot!!!

  • @srikalanair6156
    @srikalanair6156 3 роки тому +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...😊

  • @chittaranjan3090
    @chittaranjan3090 6 років тому +1

    hi Naveen, shall i create my dynamic XPath for Mozilla?

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

    @naveen you are a genius mate...I have learnt full selenium automation by seeing and practising your video.

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

      @naveen I have a question. I have a link that ends with .txt. I guess you can understand what it is showing.I have to work on a element on this link.The full page comes under one pre tag.I have tried customised xpath but that didn't work. Is there any way we can handle the elements in this page?
      Please do reply.

  • @KnowledgeHub74
    @KnowledgeHub74 6 років тому +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 5 років тому

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

  • @kamilgurgener6631
    @kamilgurgener6631 6 років тому +2

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

  • @thiery572
    @thiery572 6 років тому +2

    I am a beginner. Since Selenium IDE doesn't work in new version of firefox anymore, is there any replacement to know the commands?

    • @Jyotishjyo
      @Jyotishjyo 6 років тому +1

      you can use the gecko driver for selenium in firefox

  • @si0n4ra
    @si0n4ra 6 років тому +1

    thanks!!!! it is a great explanation in the world . also "Find by" option is opened by CMD+F not a ctrl+F (Chrome/MacOS)

  • @motazhejaze38
    @motazhejaze38 10 місяців тому +1

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

  • @since-my3bf
    @since-my3bf 4 роки тому +1

    very useful nice explanation

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

    Very useful.. Thanks for sharing. Can you please make a video series on Selenium Webdriver with Angular JS website? Actually, it is hard to get a proper selector because of JS. if class and id were generated dynamically. Thanks Again for sharing.

  • @mithaleepardeshi
    @mithaleepardeshi 4 роки тому +8

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

  • @princeharsha3451
    @princeharsha3451 6 років тому +1

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

  • @samirbamania5249
    @samirbamania5249 6 років тому +1

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

  • @ManojKumar13922
    @ManojKumar13922 5 років тому +2

    Hi Naveen
    If an Interviewer ask how do you verify your Xpath How should we Answer?

    • @rajeshrj6538
      @rajeshrj6538 5 років тому +1

      we can verify using checking it with the console , or can use extensions like chropath and firebug to check and locate it.. would suggest you to pratice it with the console.. it's a basic thing to learn and would be helpful

    • @ManojKumar13922
      @ManojKumar13922 5 років тому +1

      @@rajeshrj6538 thanks Rajesh rj

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

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

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

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

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

    East or West, Naveen is the Best

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

    Thanks so much Naveen...ur explanation is very good.

  • @Vitamin_Happiness_wid_krishna
    @Vitamin_Happiness_wid_krishna 6 років тому +1

    Hi Naveen , how can we get the code which you wrote in eclipse. And how can we contact for classed

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

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

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

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

  • @madhuri4729
    @madhuri4729 5 років тому +1

    Its very hard to see the text written in the video.. better if can b written in a notepad zoomed so that we can clearly see it..

  • @prasantamajumder27
    @prasantamajumder27 3 роки тому +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

  • @BalaMurugan-xm8gi
    @BalaMurugan-xm8gi 6 років тому +1

    Your explanation is very clear and marvelous. Superb

  • @Rohitk2085
    @Rohitk2085 6 років тому +1

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

  • @sivacva88
    @sivacva88 6 років тому +3

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

  • @sridevireddy1371
    @sridevireddy1371 6 років тому +1

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

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

    Thank you so much Naveen 🙏

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

    Amazing snippets... very useful

  • @thiery572
    @thiery572 6 років тому +1

    Hmm... interesting video. I'll check back later when I need it. :)

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

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

  • @shraddhadige234
    @shraddhadige234 3 місяці тому

    Awesome way to explain xpath!! you make really easy to find xpath now, All videos are just Awesome. Thank you so much Naveen!!!!

  • @taieb.elamri
    @taieb.elamri 5 років тому +2

    Thank you. It was very helpful !

  • @SharadTalekar
    @SharadTalekar 5 років тому +8

    Father to Uncle and Uncle to cousin, awesome explanation.

  • @sohailreyaz9822
    @sohailreyaz9822 6 років тому +2

    Excellent way of teaching. Appreciate that. :)

  • @astro99man
    @astro99man 5 років тому +1

    if the text in the name field is dynamic Instead of Naveen K ,Naveen1 K1, test2 test2, ui uiii it changes to Sita, Gita, Mita and I want to click on Gita how will i be able to identitfy the element whose parent has to be chosen?

  • @anugantimukesh
    @anugantimukesh 6 років тому +1

    hello naveen, thanks for your help, could you please make some more videos on xpath all syntax

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

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

  • @kan_chan946
    @kan_chan946 Місяць тому

    Hi
    How to write the XPath for the element containing ​ in there name
    For example Applica&ZeroWidthSpacetion in there name

  • @rahuldorai6628
    @rahuldorai6628 7 днів тому

    What if there are suppose 20 siblings.Then how to approach

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

    Inactive
    I am trying to find the text "Inactive "appearing after i tag , but not able to get it . Could u please help me in this

  • @ravikumarvemula4793
    @ravikumarvemula4793 6 років тому +2

    Superb! Explanation! Thank you so much sir :)

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

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

  • @AnjaliSingh-un9em
    @AnjaliSingh-un9em 5 років тому

    hi naveen can u please tell me xpath of below element i am not able to write for button Thinkpad T530
    ThinkPad T530

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

    Thanks a lot Naveen!!

  • @thiery572
    @thiery572 6 років тому +1

    How to:
    1. Select a choice from a drop down list?
    2. Select something from cascade menu (sub menu)?
    3. Hoover or highlight on something?
    4. How to know available action commands (e.g. go, submit, etc.), if I don't have Selenium IDE? Thx.

    • @naveenautomationlabs
      @naveenautomationlabs  6 років тому

      thiery572 plz check other videos. All these topics are already covered.

    • @thiery572
      @thiery572 6 років тому

      Okay, thanks.

  • @preetibiyala4193
    @preetibiyala4193 Місяць тому

    But it's very blur while you write the XPath... if you can paste the same in white notepad.

  • @skvskv6498
    @skvskv6498 6 років тому +1

    PIM sir plz help me out i want correct xpath this element

  • @pradyumnnasatapathy8199
    @pradyumnnasatapathy8199 6 років тому +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 .

  • @ramyabaskaran8859
    @ramyabaskaran8859 6 років тому +1

    Naveen,.. please write a xpath for forward also

  • @usharanichavva9579
    @usharanichavva9579 5 років тому

    Hi Naveen,
    Im trying to find the xpath for one of the drop down options, but I couldn't. Can you please help me on this.
    Here is the link to AUT : live.guru99.com/index.php/
    1)Click on Mobile Menu
    2)Select Sort By as "Name"
    This is the Xpath I have been trying : "//div[@class='category-products']//select//option[contains(text(),'Name')]"
    Thanks for your help in advance.
    Thanks
    Usha

  • @meghasandesam
    @meghasandesam 5 років тому

    if there are multiple records with same name, and i want to click the check box for all the records (which is having same name)..how can i do that? can any one pl provide the hint?

  • @dwarakc
    @dwarakc 6 років тому +1

    All, I want to get the text "XYZ" from the Test, I don't want "Test" only "XYZ", can anyone provide the xpath, thanks in advance

    • @shilpajayaprakash2778
      @shilpajayaprakash2778 6 років тому

      Yes, you can use String attributevalue= driver.findelement(By.xpath(//*(text()='Test')). getAttribute("class"), this will return a class value in string.

    • @offergui2142
      @offergui2142 6 років тому

      Thank you !!!

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

    Naveen, not sure whether you follow Money Heist. While watching this session i felt like create my own dynamic xpath:-)
    Here goes my dynamic xpath: //Money Heist[@The Professor = 'Alvore Morte'] and //Selenium[@The Professor = 'Naveen']