Тёмный

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

Software Testing Mentor
Подписаться 171 тыс.
Просмотров 58 тыс.
50% 1

Get all my courses for USD 5.99/Month - bit.ly/all-cou...
🔹 FREE Training's at training.rcvac... 🔔SUBSCRIBE to CHANNEL: bit.ly/2YGU6JM
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:
✅ ALL PLAYLISTS (Software Testing Mentor)🔸 / softwaretes. .
✅ ALL PLAYLISTS (RCV Academy)🔸 www.youtube.co....
✅ JIRA BEGINNER TUTORIAL🔸 bit.ly/jira-beg...
✅ JIRA WORKFLOW TUTORIAL🔸 bit.ly/2EzKOEB
✅ JIRA ADMINISTRATION TUTORIAL🔸 bit.ly/36MPPFR
✅ JIRA TUTORIAL INTERMEDIATE🔸 bit.ly/Atlassia...
✅ JIRA TUTORIALS🔸 bit.ly/jira-tut...
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
✅ SOAPUI TUTORIAL🔸 bit.ly/Sopui-tu...
✅ JSONPath TUTORIAL🔸 bit.ly/2sIZIFG
✅ POSTMAN TUTORIAL🔸 bit.ly/2PBbhI7
✅ ISTQB AGILE TESTER CERTIFICATION TUTORIAL🔸 bit.ly/istqb-ag....
✅ ISTQB FOUNDATION LEVEL CERTIFICATION TUTORIAL🔸 bit.ly/istqb-fo....
✅ CUCUMBER SELENIUM TUTORIAL🔸 bit.ly/cucumber...
✅ TESTRAIL TUTORIAL🔸 bit.ly/testrail...
✅ AGILE TUTORIALS🔸 bit.ly/agile-tu...
✅ PYTHON TUTORIALS🔸 bit.ly/python-p....
✅ PYTHON BEHAVE TUTORIALS🔸 bit.ly/python-b...
✅ PRACTITEST TUTORIAL🔸 bit.ly/practite...
✅ JAVA TUTORIAL🔸 bit.ly/2F1iL1B
✅ ZEPHYR TUTORIAL🔸 bit.ly/zephyr-f...
🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶
training.rcvaca...
🔶 FOLLOW US ON TWITTER 🔶
/ rcvacademy
/ swtmentor
/ mrmverma
🔶 LIKE US ON FACEBOOK 🔶
/ softwaretest. .
/ rcvacademy47
🔶 OUR TUTORIAL WEBSITES 🔶
www.softwarete...
www.rcvacademy...
🔶 GET MY TRAININGS ON UDEMY 🔶
www.udemy.com/...
#XPathTutorial #XPath #SeleniumXPath #SeleniumTutorial #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@priyankak8450
@priyankak8450 4 года назад
Great sir, easy to understand. I'm watching all your videos to learn robot framework. Thank you so much sir
@softwaretestingmentor
@softwaretestingmentor 4 года назад
Thank you Priyanka! Regards, Manish
@TheAllanazarpour
@TheAllanazarpour 4 года назад
Great, easy to understand, thanks.
@softwaretestingmentor
@softwaretestingmentor 4 года назад
Thank you! Glad you liked it!
@SainiDas-jw4mq
@SainiDas-jw4mq Год назад
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?
@pankajsumansharma9236
@pankajsumansharma9236 4 года назад
nicely explained , thanks
@softwaretestingmentor
@softwaretestingmentor 4 года назад
Thank you Pankaj! Regards, Manish
@apollosbangalu3717
@apollosbangalu3717 Год назад
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?
@rajanirajeswari3343
@rajanirajeswari3343 2 года назад
Hi Sir, It is simple and straight. Easy to follow. Many thanks for the posts.
@VarunBhati91
@VarunBhati91 3 года назад
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?
@softwaretestingmentor
@softwaretestingmentor 3 года назад
Thank Varun! Will upload soon and provide link. Regards,Manish
@Mooste
@Mooste 3 года назад
Good explanation. thanks :-)
@softwaretestingmentor
@softwaretestingmentor 3 года назад
Thanks, glad you liked it!!
@Chillshortz1
@Chillshortz1 Год назад
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
@dev9559
@dev9559 Год назад
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
@rahulkar3195
@rahulkar3195 3 года назад
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 //tag.........]/parent::* //tag.........]//parent::* 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
@thangvumanh1320
@thangvumanh1320 3 года назад
You are right, but could you tell me the reason for that?
@laponiec
@laponiec 2 года назад
What if we want to select a single child from all the children, but we don't want to do it by an index, but by some other attribute, is it possible? Edit: Actually, it is possible the syntax would be: //select[@name="user[country]"]//child::option[@name="name"]
@TienTrinh-nr3hx
@TienTrinh-nr3hx 2 года назад
thank u so so much ^^
@siddhantraj5323
@siddhantraj5323 3 года назад
Hello how can I select lwc components with XPath example I want to select lwc-button //lwc-button is not working thanks.
@dilawarkhan4085
@dilawarkhan4085 3 года назад
amazing content sir, i need the PPTx if you can provide please.
@softwaretestingmentor
@softwaretestingmentor 3 года назад
Hi Dilawar, Will upload soon and provide link. Thanks, Manish
@shantanujoshi3863
@shantanujoshi3863 2 года назад
Hi now if you go this site all the webelements are now inside shadow DOM. Please make a video again for shadow dom elements
@ianleo3030
@ianleo3030 Год назад
but what if the parent is not unique
@naganikhil6954
@naganikhil6954 11 месяцев назад
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
@ianleo3030
@ianleo3030 Год назад
it is fine i solved it //span[contains(text(), "ماهو الحل مع هؤلاء الدين يدعون أنهم دفعوا المال")]//parent::span[@class="x193iq5w xeuugli x13faqbe x1vvkbs x1xmvt09 x1lliihq x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x xtoi2st xw06pyt x1603h9y x1u7k74 x1xlr1w8 xzsf02u"]