Xpath | Absolute Beginner Guide | PART-1 | Intro | Writing XPath with Elements & Attributes | Tamil

  Рет қаралды 73,378

Learn Automation Online

Learn Automation Online

5 жыл бұрын

One of the most anticipated topics on Learn Automation Online is writing Xpath. There is no wonder why this is the most expected topic. Because XPath play a major role in test automation projects and they are very crucial in the interview as well. This has two parts and this is the part one of the XPath tutorials.
What will we learn in this video?
1. Why do we need XPATH? Why not other locators?
2. Can we rely on browser plugins alone?
3. What is XPATH?
4. How XML PATH and its functions handle HTML elements ?
5. Types of XPath.
6. Identification strategies:
a) Locating Elements with Known Attribute
b) Locating Elements with known Element and Attributes
c) Locating Elements with Known Visible Text (exact match)
d) Locating Elements when part of the visible text (partial match)
e) Locating Elements with Multiple Attributes
f) Locating elements when starting visible text is known
g) Locating Elements with Dynamic Attribute values
Best way to reach me (replies will be faster): KZbin comment section
Also, you can follow me on Facebook and Instagram.
Facebook: bit.ly/2TqPlis
Instagram: bit.ly/2Ez36rH
Some Useful Reference Links:
1) bit.ly/2od2w9X
2) bit.ly/2WVIVtG
3) bit.ly/2ufUzDe
#Selenium #XPATH #LearnAutomationOnline

Пікірлер: 118
@sanjanaravi2132
@sanjanaravi2132 3 жыл бұрын
Absolute brilliance 👏 Your teaching method is very good sir. The way you start with why for each topic makes it so easy to understand. Your teaching makes the concepts and basics so strong. Became a fan of your teaching sir 🙏
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
Thanks Sanjana Ravi
@dukedharma4768
@dukedharma4768 2 жыл бұрын
Thalaiva u r greate, i just love the way u r teaching, if u were in my school or college as a prof i may be in a good place right now . Simply love you man
@sanjanaravi2132
@sanjanaravi2132 3 жыл бұрын
Amazing sir ! The best video for xpaths 👏👏👏👏👏👏 Thanks a ton for all the videos sir, selenium, pom, java all super super 👌
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
Glad u liked them
@nisharaj9132
@nisharaj9132 3 жыл бұрын
Great teaching bro... Awesome explanation
@prabakarancaptain3978
@prabakarancaptain3978 2 жыл бұрын
Romba nanri sir xpath na ennanu theriyamale iruntha theliva puriya vachitinga sir...
@harticvicky7252
@harticvicky7252 2 жыл бұрын
amazing your teaching sir and all students future in your videos usefull
@haseens-ph9to
@haseens-ph9to Жыл бұрын
all fine and understandable sir .thank u so much. teaching is just perfect.
@technolgyistech6691
@technolgyistech6691 Жыл бұрын
Good video with good explanation👏👏
@nishamukeshasif725
@nishamukeshasif725 Жыл бұрын
superb teaching...Thanks alot sir....
@balakrishnapv1784
@balakrishnapv1784 2 жыл бұрын
Excellent and Marvellous
@user-mi6rr5jd1h
@user-mi6rr5jd1h 4 жыл бұрын
Superb bro vera level.
@peterk6674
@peterk6674 Жыл бұрын
Arul bro..neenga indha comment padipeengalaanu theriyala..but you single handedly improved my skillset bro. I am feeling grateful. may God bless you!
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
Glad to hear Peter. Keep learning
@shivu2012
@shivu2012 Жыл бұрын
Excellent Sir.. Admiring your teaching..
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
🙏🏻
@1goldenpeacock
@1goldenpeacock 3 жыл бұрын
Mind-blowing explanation!!!! Where have you been so far? Why haven't I find you 10 months earlier? By now I have been in a company!!!!
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
Better late than never. 🙂
@selvik1070
@selvik1070 2 жыл бұрын
Amazing sir I understood 👍👍👍👍👍👍
@raji8586
@raji8586 3 жыл бұрын
Thank you so much Bro...Wonderful explanation
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
You're most welcome
@nellainayagam7540
@nellainayagam7540 2 жыл бұрын
vera level sir neenga
@sureshsubramaniyan3201
@sureshsubramaniyan3201 5 жыл бұрын
Hi Ji, one request.. please create one video for which concept want to start first to learn core-java and which sequence need to follow for selenium... Hope everyone watching in a proper way.
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
To learn selenium, I have created two playlists basic and advanced in that all are arranged in order to learn. For TestNG, also playlist available. All the videos will.have part numbers for easy identification. However, I will create a table of contents, for better learning.
@saravananraman2697
@saravananraman2697 3 жыл бұрын
Thanks for asking this bro. This is much needed. Please help!
@vignesh.sudharsan5918
@vignesh.sudharsan5918 2 жыл бұрын
Awesome Bro.Thank you🤗
@padmavathipadma4129
@padmavathipadma4129 2 жыл бұрын
Super bro .... Thank u for ur guidence
@Ajith-ky2qw
@Ajith-ky2qw 3 жыл бұрын
bro nice one,regular expression use panie xpath and css selector ku videos podunga bro
@suriyapriyaboopathy8780
@suriyapriyaboopathy8780 Жыл бұрын
Hi bro your videos were easy to learn and understand,just I wanted to know...if I need to understand xpath or study xpath in xml, what are the things which I have to study or go through before...like I need to study XML or SGML or xslt or Html anthing like that??? Pls reply
@QualityoverQuantity315
@QualityoverQuantity315 2 жыл бұрын
Bro, you are a teacher par excellence!!! Thank you🙏I have one request. Can you please do a video on CSS selector. Also in interview, i was asked a question when will you use xpath vs when you will go for CSS selector? Can you help us with answer.
@mysonandmajuro4802
@mysonandmajuro4802 2 жыл бұрын
Bro did you find the answer for that question?
@johnmonish5317
@johnmonish5317 2 жыл бұрын
@@mysonandmajuro4802 both are same but in performance wise css selector because its bidirectional property and in xpath its unidirectional it means it read from top to bottom refers HTML tags only
@selvik1070
@selvik1070 2 жыл бұрын
Very interesting sir🙏🙏🙏🙏🙏🙏
@kirankp2241
@kirankp2241 5 жыл бұрын
Very Helpful.. Thanks a lot
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Glad you found it helpful.
@karthicksundar1409
@karthicksundar1409 4 жыл бұрын
@@LearnAutomationOnline hi bro.. Is there any possible way to click by using x y location based?
@pattufashiondesigners4175
@pattufashiondesigners4175 4 жыл бұрын
Hi sir, Your tutorial is too awesome to understand the concepts. Could you please teach tutorial for selenium using python. It will be very helpful. I have watched and learned selenium through all ur selenium tutorial with java.. Because of your tutorial only, I got selected as a QA automation engineer in a good company. Thanks for your tutorial. Could you please teach the python??
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
That's so great to hear. Right now I'm not in a position to create videos, I don't have access to my personal computers. Once everything is back to normal will try to create videos. Hope you can understand.
@pattufashiondesigners4175
@pattufashiondesigners4175 4 жыл бұрын
@@LearnAutomationOnline ok bro.. Waiting for your python tutorial..
@Mohan-sj4fz
@Mohan-sj4fz Жыл бұрын
Hi Sir, i have learnt all concepts you have mentioned in 2 video. But, when i get to pratice there are still some element i coudnt able to get the appropirate xpath. is there are any methods to get xpath.
@ragavarshinis6337
@ragavarshinis6337 4 жыл бұрын
Hi sir, Nice explanation in easy way, thanks for your videos.. Am facing one issue in my application. button element have same path,id,name,class too how to identify ? next one
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
That's not possible how come multiple elements will have same id? Xpath will definitely be different. Pls send the snapshot to seleniumtrainer36@gmail.com of your issue
@joesefjoe112
@joesefjoe112 4 жыл бұрын
Hi sir ,I'm watching ur videos regularly , can u post some videos on postman!
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Hi Joseph, right now I don't have access to my personal computers. Got stuck in lockdown
@vigneshpandiyan9506
@vigneshpandiyan9506 Жыл бұрын
hi bro i have a doubt in xpath in amazon home page there is a sliding cards which is continuously sliding by showing the offers right.. so in that how to take xpath for the perticular card..
@SuperRaman99
@SuperRaman99 3 жыл бұрын
thank you so much bro
@sakthii7749
@sakthii7749 4 жыл бұрын
How to find xpath in firefox without plugin using 47.0. 1 but not showing copy xpath tell me how to find
@manikandanv1811
@manikandanv1811 2 жыл бұрын
Thank you brother .but please take a linkedin,or fb,or insta like difficult websites and show how to automate this sites atleast 4 to 5 pages with full attributes elements text cover all the types in xpath css selector .like a mini project thank you
@nagchess
@nagchess 2 жыл бұрын
More info -here is d link kzbin.info/www/bejne/g5CXiGOmadiAbJY
@royalwinautomatedsoftware2985
@royalwinautomatedsoftware2985 2 жыл бұрын
Hai sir, unga video parthu own xpath create panen. Enaku oru website check pana methu athula Element and Attribute 8 found aguthu but athula value unique than antha value vachi xpath own create pana mudiyuma
@sumathisr7461
@sumathisr7461 4 жыл бұрын
hi sir,i have seen your videos about Dynamic tables.If possible please teach us with the table concept.i am confusing with that concept when i try to retrieve the data from table, and finding unique id of the table. help me to clear the things
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
After watching xpath videos, you should be able to write your xpath. If not send in the xpath you have written and what is the error that you are getting
@dhivyavetriselvan
@dhivyavetriselvan Жыл бұрын
understood bro.thanks
@saranyaravi3685
@saranyaravi3685 4 жыл бұрын
Hello Arul, Thanks for the video .I understood the first 7 concept and implemented one type in our editbox video example and it worked fine. But i have a doubt here , in this video for "Starts with" type @26:36 time you used //id[starts-with(text(),"btn)] ,we did not get any match right.I think id should not be there it is "input" (element name) right.I am not sure just im asking for clarification.Sorry if im wrong. can u pls clarify.
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
The ui might have changed now. I mean the backend code would have changed. If it's working for me in that video then there was definitely the element matching the xpath was there but now it is changed
@raji8586
@raji8586 3 жыл бұрын
Yes..you are right @saranya..Instead of taking element name by mistake he took attribute name
@mysonandmajuro4802
@mysonandmajuro4802 2 жыл бұрын
Ji ithula nenga use panra 7 types example la mostly more than 2 choices varuthu. Athula epadi namaku vendiya option choose panrathu
@benittoraja5957
@benittoraja5957 2 жыл бұрын
Please post video for finding xpath using css selector.
@arunragavan442
@arunragavan442 4 жыл бұрын
bro unable to locate element nu varuthu bro...using xpath ...what to do
@suriyapriyaboopathy8780
@suriyapriyaboopathy8780 Ай бұрын
What is the difference between index based and position based commands in xpath?
@sowmyadevi3661
@sowmyadevi3661 4 жыл бұрын
Thank you 😊
@mychoice2559
@mychoice2559 3 жыл бұрын
Hi Anna, Css Selector ku ethay mari video poduga...please please
@karthicksundar1409
@karthicksundar1409 4 жыл бұрын
Hi bro, Im working in bank field Example: Having account number list like customeracc123,customeracc345 dynamically changing while reloading. I can't able to take xpath for that, if i use startwith or contains all the path is selecting. How can i handle this scenario?
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Then you have to select the index position is it the first or second element. Something like this : (xpath_expression)[index]
@AnithaKrishnamoorthy-vk5xn
@AnithaKrishnamoorthy-vk5xn Жыл бұрын
I like all your videos . i would have watched 50% of your videos . in this video . when i try this with google or any other website its not working for me . I gave very simple one //*[@id='inner-wrap'] . it says "No matching Selector or Style". Do i need to configure any this in browser ?
@AnithaKrishnamoorthy-vk5xn
@AnithaKrishnamoorthy-vk5xn Жыл бұрын
Solution: we need to enable DOM Searching .press Ctrl+f
@celinemary3371
@celinemary3371 4 жыл бұрын
Bro, how to get xpath search box ...like you are searching in the box i dont know where is search xpath...?????reply me
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Press control f. After clicking in HTML codes. U can see the serch box
@basker6958
@basker6958 3 жыл бұрын
Bro, Your teachings are awesome and very easy to understand, Bro I have 7 years of manual testing experience, Now I want to switch over to Automation Testing, But when I post my resume in Nakuri for automation, I did not get any interviews because I don't have any automation experience, So can u pls advice me on this, How can I switch over to Automation (Suppose if I am doing any project by myself, is it enough to attend the interview by providing a minimum of 1-year experience in automation? Though I selected, Can I able to pursue my automation career by your youtube videos (I have watched till 6- Playlist so far)? Pls I need to advise..............
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
You can constantly practice handson and if you do so you can very well mention like you have 2 to 3 years of relevant automation experience. NOTE: provided you done regular hands on for all the important playlists. And to the second question, YES you can easily pursue automation after clearing the interview. There are many people who got offers in LAO community and are working as automation testers even with 8 years of gap and I know a lot of freshers working post completion of our courses. so it shouldnt be a problem at all. All the very best. Feel free to revert, in case you have any further questions!
@basker6958
@basker6958 3 жыл бұрын
@@LearnAutomationOnline Thank you for your valuable advice anna, it means a lot to me. As you mentioned earlier in some comments that Upto 6th Playlist very important and necessary, So Is it enough, or what else I need to watch & practice? Pls mention na, Now I m in desperate need of a Job (Layoff due to Corona). Thanks in advance...
@karthikeyansrg2370
@karthikeyansrg2370 2 жыл бұрын
🔥♥
@vickymu5812
@vickymu5812 4 жыл бұрын
Bro...manual testing ....agile testing pathi video iruga...
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
No. Not right now. Agile is not a testing technology. It's a process of software development life cycle.
@muthukkumars4338
@muthukkumars4338 5 жыл бұрын
Starts-with and contains not clear there are multiple match is there
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
If there are multiple elements matching the criteria, then we have to select the appropriate one. Say if you have written an xpath and it's showing 5 results and you want the third one to be selected then your path should be something like this. //Yourxpath[3]. This will return only the intended element
@kiruba_kkofficial1435
@kiruba_kkofficial1435 10 ай бұрын
Anna Workday HCM samantha pata video podu anna🎉
@pattanisundall278
@pattanisundall278 Жыл бұрын
Hello sir Locating elements with multiple attributes Syn://*[attribute1='value'] or //*[@attribute1='value'] Kindly tell me the correct one
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
Have you watched the xpath videos fully? If you are going tonuse attribute u must use @
@mychoice2559
@mychoice2559 3 жыл бұрын
Hi Anna , Please , etha mari CSS ku solluga please please
@archanamuthukrishnan6465
@archanamuthukrishnan6465 Жыл бұрын
Hello Sir I am stuck here please help I got 4 web elements from list ..iterated using for loop. Using index=0 element[i] I am not able to chose first element in list ..(since it starts with 1)...I tried to start index from 1 not working...is there a way to increase index in xpath ?
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
Store the list of web elements and iterate them using for each loop
@archanamuthukrishnan6465
@archanamuthukrishnan6465 Жыл бұрын
@@LearnAutomationOnline ok Sir thx for reply
@geethapreeyanagarajan2421
@geethapreeyanagarajan2421 Жыл бұрын
vaera video va pathathuku unga video va modhala pathurkanum
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
Better late than never
@yashwanths5152
@yashwanths5152 Жыл бұрын
Hi Brother. Interview la entha Locator Fast and Entha Locator Slow nu Keytanga.. Naa id Fast nu sonnane , avanga correct ah answer nu keytutu onnum sollala.. google ah search panna different answers irukku. please clear my doubt ?
@mukeshperumal3189
@mukeshperumal3189 11 ай бұрын
ID the bro fastest and xpath tha slowest
@yashwanths5152
@yashwanths5152 11 ай бұрын
@@mukeshperumal3189 thank you brother
@divyashan7050
@divyashan7050 2 жыл бұрын
bro you are typing xpath in that inspection page...i do not find that column? how to enable typing in inspection page like your's...?
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Click control f. On the inspection page. If u r skipping the video, pls don’t. I would have explained these things in the video itself
@divyashan7050
@divyashan7050 2 жыл бұрын
@@LearnAutomationOnline Ok thank u
@chandhinikrishnakumar1468
@chandhinikrishnakumar1468 4 жыл бұрын
So here 'starts with ()' function will work only for text and not for id attribute containing text. Is that so?
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Starts with can be used for id as well
@chandhinikrishnakumar1468
@chandhinikrishnakumar1468 4 жыл бұрын
@@LearnAutomationOnline Ok, Thank you
@nagarajjanakiraman8696
@nagarajjanakiraman8696 3 жыл бұрын
//*[starts-with(@id,'btn')]
@abdul2001
@abdul2001 4 жыл бұрын
Hi bro...i have a doubt, if the id="ab123" then refresh the id is "du852" again refresh "lulu632" I get different id s when I refresh the page. In this case, how to write an Xpath? Bro....
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
99 percent dynamic id's will have constant portion and a variable portion. Do u really mean the id is generating without even having a constant portion? In that case u can use id as an attribute for the xpath. U have to look for some other options
@abdul2001
@abdul2001 4 жыл бұрын
@@LearnAutomationOnline okay thanks 24/7 bro...
@pakkirisamymariyappane7230
@pakkirisamymariyappane7230 4 жыл бұрын
Bro yen CSS Locators patthi videos illa. Athu selenium kku important illaya. Please reply. Na unga videos regular ah pakkura viewer
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
CSS is also similar to xpath and has equal importance. But if you are too strong in xpath, there's no need for CSS. However, learning css will also be helpful. Will try to put one video on that as well
@pakkirisamymariyappane7230
@pakkirisamymariyappane7230 4 жыл бұрын
@@LearnAutomationOnline ss bro na vera videos pathan but unga alavukku explanation illa. And enaku purira alavuku solla mattanga. But you masters in that. Expecting soon ur videos. Great thanks for your reply.
@muthukkumars4338
@muthukkumars4338 5 жыл бұрын
pls update next step
@arunragavan442
@arunragavan442 4 жыл бұрын
bro text() use pannapothu athuku minnadi @ poda theva iliya bro????
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
No it's a function. When you use any attributes you can use @
@arunragavan442
@arunragavan442 4 жыл бұрын
@@LearnAutomationOnline tqu
@arunragavan442
@arunragavan442 4 жыл бұрын
@@LearnAutomationOnline tqu bro
@starvijay7689
@starvijay7689 Жыл бұрын
Sir will u copy nd paste it xpath. Don't type
@PriyaDharshini-bf1hq
@PriyaDharshini-bf1hq 2 жыл бұрын
Xpath type panreengalla apo neenga type panardhuku oru column keela varudhu .. adhu epdi kondu vareenga ..
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
Click on the html code. And control f
@PriyaDharshini-bf1hq
@PriyaDharshini-bf1hq 2 жыл бұрын
@@LearnAutomationOnline ok sir tq
@Food-Stars
@Food-Stars 3 жыл бұрын
Can you please send me your Editor question
@sunilsundaram8305
@sunilsundaram8305 3 жыл бұрын
Why are you calling "tags" as "elements"?
@banup4077
@banup4077 3 жыл бұрын
Sir, I am not able to find xpath search location in chrome. Pls reply
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
After inspecting, if u click on the code and press control f, u will get the search box for typing the xpath
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 22 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 10 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Selenium XPath - 15 + patterns | LetCode
46:14
LetCode with Koushik
Рет қаралды 32 М.
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 712 М.
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 22 МЛН