XPath Axes: Understanding The Basics || Selenium WebDriver || Java

  Рет қаралды 14,285

Automation Testing

Automation Testing

Күн бұрын

XPath Axes in Selenium WebDriver used to locate a web element which is not having any attributes on it's own, can't locate it directly using any of the locator strategy which selenium WebDriver provides except XPath and very useful to locate dynamic XPath. In such cases we can use XPath Axes mechanism to locate based on other web elements present in the HTML Document. We can use any one or all of the XPath axes names/method to locate any web element on given web page.
Demo Site: www.zoho.com/c...
======== XPath Axes Names/Methods ========
1. self
2. parent
3. child
4. ancestor
5. ancestor-or-self
6. descendant
7. descendant-or-self
8. preceding
9. preceding-sibling
10. following
11. following-sibling
Subscribe to My Channel for more Selenium WebDriver Videos
/ nandhis
Get more insights of other selenium locators following below tutorials:
--------------------------------------------------------------------------------------------------------------------
Locators in Selenium - Id • Locators In Selenium W...
Locators in Selenium - name • Locators In Selenium W...
Locators in Selenium - className • Locators In Selenium W...
Locators in Selenium - tagName • Locators In Selenium W...
Locators in Selenium - LinkText & PartialLinkText • LinkText and PartialLi...
Locators in Selenium - Xpath • Dynamic XPath In Selen...
Generate Dynamic XPath - • How To Generate Dynami...
XPath Contains Method - • How To Use contains() ...
XPath Starts-with Method • How To Use starts-with...
XPath Contains Method • How To Use text() Meth...
XPath Logical operator AND - • How To Use AND Operato...
XPath Logical operator OR - • How To Use OR Logical ...
XPath Logical operator not - • How To Use not Operato...
~~~~ Thanks For Watching ~~~~
#xpathaxes #seleniumwebdriver #self #parent #child #ancestor #ancestororself #descendant #descendantorself #preceding #precedingsibling #following #followingsibling what is xpath axes how to use xpath axes xpath axes methods functions how to identify xpath with parent child traverse relationship, how to use preceding sibling in xpath expressions, xpath expression locators, following-sibling xpath axes, selenium xpath traversal parent child preceding-sibling following-sibling descendant, xpath function and axes methods ancestor, preceding-sibling, how to crack selenium interview for experience, how to become an expert in xpath, selenium xpath axis, parent child following preceding ancestor descendant, identify xpath with parent child traverse relationship, preceding-sibling xpath axes, selenium webdriver tutorial, xpath, identify child locators through reference of parent node, xpath element locators, axes methods ancestor, ancestor-or-self, how to identify siblings and traverse back to parent nodes with xpath, 1identify xpath with parent child traverse relationship, xpath axes methods following parent ancestor descendant, advanced webdriver xpath tutorial, what is xpath? how to write xpath?, xpath tutorial for dummies, how to find xpath in chrome for selenium automation scripts, how to use xpath in selenium, how to write xpath to find elements in the webpage, xpath interview questions and answers, xpath interview questions, advanced xpath expressions in selenium, selenium xpath tutorial, dynamic xpath, dynamic xpath in selenium webdriver, xpath tutorial for beginners, selenium tutorial for beginners, selenium testing tutorial, relative xpath, following-sibling, xpath tutorial, xpath in selenium, locators in selenium webdriver, webdriver, xpath in selenium webdriver, general sibling selector, descendant selector, child selector, selenium xpath, xpath, ancestor, following, xpath axes, xpath axes in selenium, xpath axes with examples, xpath axes in selenium webdriver example, xpath axes example in selenium, xpath axes methods in selenium, xpath axes in selenium webdriver, xpath axes in selenium, xpath axes with examples, xpath axes in selenium webdriver example, xpath axes example in selenium, selenium xpath tutorial, xpath axes methods in selenium, dynamic xpath in selenium webdriver, xpath axes in selenium webdriver, xpath tutorial for beginners, selenium webdriver tutorial, selenium tutorial for beginners, selenium testing tutorial, relative xpath, following-sibling, preceding-sibling, child, preceding, self descendant

Пікірлер: 17
@siddhant6628
@siddhant6628 3 жыл бұрын
Very helpful sir thank you
@Nandhis
@Nandhis 3 жыл бұрын
Hi Siddhant, Thank You! Keep Supporting!!
@NeedToKnow.
@NeedToKnow. 8 ай бұрын
The level of explanation is unmatchable, thanks sir 😊
@kiranantony4784
@kiranantony4784 3 ай бұрын
00:02 XPath axes represent relationships to current nodes for locating related nodes. 01:32 Understanding XPath axes for locating web elements 03:01 Explaining relationships between HTML elements using XPath axes. 04:25 Understanding Xpath Axes for WebDriver in Java 05:52 Understanding XPath Axes and their differences. 07:19 Understanding XPath Axes in Selenium WebDriver 08:47 Understanding XPath Axes and their differences 10:08 Understanding XPath Axes Relationships
@shreyascookhouse9565
@shreyascookhouse9565 Жыл бұрын
Very Informative, Thank You Sir!
@ashishanand5899
@ashishanand5899 11 ай бұрын
Really very helpful
@12345MBK
@12345MBK Жыл бұрын
I learn new think today Thank you sir
@swetamallick6282
@swetamallick6282 Жыл бұрын
Informative. Thank you! Would be great if background teams call noise is suppressed!
@MohammadHossain-xx3hs
@MohammadHossain-xx3hs 6 ай бұрын
Very nice explanation
@MayurGawande
@MayurGawande 2 жыл бұрын
Superb explanation!
@achubala4759
@achubala4759 2 жыл бұрын
Great sir..Thank you
@shivrajwadkar9277
@shivrajwadkar9277 2 жыл бұрын
Very helpful sir thank you
@GetYourselfALife
@GetYourselfALife Жыл бұрын
Thanks bro
@bhushan4723
@bhushan4723 3 жыл бұрын
Thanku sir 🙏
@Nandhis
@Nandhis 3 жыл бұрын
Thank you! Keep supporting!💐 Happy automation 😍😊
@TanzeelKhan-g4n
@TanzeelKhan-g4n 7 ай бұрын
little confused about preceding. does it include the ancestors or not?
@Nandhis
@Nandhis 4 ай бұрын
Preceding will not have ancestors and its parent element.
XPath Axes: How To Use Self, Parent, Child || Selenium WebDriver || Java
10:58
ДОКАЗАЛ ЧТО НЕ КАБЛУК #shorts
00:30
Паша Осадчий
Рет қаралды 1,6 МЛН
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 17 МЛН
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 719 М.
How To Explain Selenium Automation Framework In Interviews
12:03
RD Automation Learning
Рет қаралды 200 М.
Handle Dynamic Google Search Using Dynamic XPath - WebDriver Session - 15
21:51
Naveen AutomationLabs
Рет қаралды 165 М.
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 69 М.