Selenium XPath Tutorial #7 - XPath Axes Methods | Parent, Child, Self

preview_player
Показать описание
In this Selenium XPath tutorial we will learn about XPath Axes methods Parent, Child and Self.

Xpath axes methods are very helpful in finding the webelements in context to the current node. There will be many scenarios in which the webelement you want to select does not have any unique attributes to define the XPATH, in those scenarios you can use the Axes methods to find that webelement in reference to the other.

Help me in spreading the knowledge, please hit LIKE, SHARE and SUBSCRIBE for latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#XPathTutorial #XPath #SeleniumXPath #SeleniumTutorial #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor
Рекомендации по теме
Комментарии
Автор

Great sir, easy to understand. I'm watching all your videos to learn robot framework. Thank you so much sir

priyankak
Автор

Thank you Sir for these videos. It has been of great help to me. Please how can I get the Slides for the entire series?

apollosbangalu
Автор

Can you please mention why we are choosing parent in the last part of this video? what's the usage of that on a script?

SainiDas-jwmq
Автор

great work sir helping a lot, i need to know can u share the link of ppt u used in the videos at the end of the series?

VarunBhati
Автор

Hi sir, what's most important xpath or css selector? Interviewer would ask about css selector or xpath ?
And secondly in real scenario what would be my approach, shall I go with xpath or css selector .please reply
Thanks in advance

Chillshortz
Автор

Hi Sir, It is simple and straight. Easy to follow. Many thanks for the posts.

rajanirajeswari
Автор

I have a reference file where I have stored all the Xpath that are used in my project. The script was working fine but for the last few days I am getting an error message - 'Index out of bound'. I showed it to one colleague he said to change the sequence of the Xpath i.e. Cut and paste the XPath of the web element where the script is failing to the top of the page(reference file) and it somehow worked. But this is not the solution though as other people in the project area also updating that file and somehow the sequence is getting changed after some time and I am getting the same error again for one web element or another.

Now I have to copy every Xpath to the top of the reference file(one after another) as I am getting the same error for every next web element So the file gets updated after a few mins and I am stuck with the same error.

I don't think sequence should be an issue but it seems fishy

dev
Автор

amazing content sir, i need the PPTx if you can provide please.

dilawarkhan
Автор

I would like to point out one thing..using a // before parent or child doesn't correctly work in cases where we use a * after parent or child.
For eg try randomly on tags using



Both of the above gives different results..using double slash yields multiple parents..most of the times
So its better to use a single slash at all times to yield only 1 parent

rahulkar
Автор

Hello
how can I select lwc components with XPath
example I want to select lwc-button
//lwc-button is not working
thanks.

siddhantraj
Автор

Hi now if you go this site all the webelements are now inside shadow DOM. Please make a video again for shadow dom elements

shantanujoshi
Автор

Sir overall it was good
But u dint take real time scenarios
U were just managing it
For dynamic elements u dint take real time dynamic values

naganikhil