How many types of XPATH there are?
There are two types of XPaths: one is Absolute XPath, and the other is Relative XPath. Absolute XPath starts with a single slash, meaning it starts from the root element, which is HTML, and goes step by step to the desired web element. This locator is not stable and will break easily if there is any minimal change in the HTML page, so it's not recommended to use it, and we are not using Absolute XPath.
Relative XPath is the one that we are using. It starts with a double slash, which means it jumps to the web element provided. Relative XPath is more reliable because we are being very specific, compared to Absolute XPath.
This question also can come with the difference between single slash and double slash as well. You can see that a single slash means it's just going one by one; it goes directly to the elements under that. But a double slash can jump to anywhere you want to go.
From this perspective, please hit the like button if you find this video helpful, and consider subscribing to our channel if you would like to stay connected. Also, please let me know in the comment section which UI test automation interview question you want me to cover next. Thank you so much.
#xpath #selenium #cydeo
Website: https://cydeo.com/
Instagram: https://www.instagram.com/cydeo/
Linkedin: https://www.linkedin.com/school/cydeo-official/
Twitter: https://twitter.com/Cydeo_Official
Facebook: https://www.facebook.com/CYDEO.Official/
Видео How many types of XPATH there are? канала CYDEO
Relative XPath is the one that we are using. It starts with a double slash, which means it jumps to the web element provided. Relative XPath is more reliable because we are being very specific, compared to Absolute XPath.
This question also can come with the difference between single slash and double slash as well. You can see that a single slash means it's just going one by one; it goes directly to the elements under that. But a double slash can jump to anywhere you want to go.
From this perspective, please hit the like button if you find this video helpful, and consider subscribing to our channel if you would like to stay connected. Also, please let me know in the comment section which UI test automation interview question you want me to cover next. Thank you so much.
#xpath #selenium #cydeo
Website: https://cydeo.com/
Instagram: https://www.instagram.com/cydeo/
Linkedin: https://www.linkedin.com/school/cydeo-official/
Twitter: https://twitter.com/Cydeo_Official
Facebook: https://www.facebook.com/CYDEO.Official/
Видео How many types of XPATH there are? канала CYDEO
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![From Medicine to IT: One Man's Journey to Pursue His Passion](https://i.ytimg.com/vi/c_IquALewgQ/default.jpg)
![How I Almost Gave Up Learning How To Code](https://i.ytimg.com/vi/hHFHpOuSq4c/default.jpg)
![How many years have you been using Java for testing?](https://i.ytimg.com/vi/gxqjpkwgxII/default.jpg)
![I wasn’t smart, but had desire to learn coding](https://i.ytimg.com/vi/hWHzR40SsI8/default.jpg)
![How to Extract and Sum Digits in a String? | JAVA INTERVIEW QUESTIONS](https://i.ytimg.com/vi/l0bNN2qMatQ/default.jpg)
![Mastering Your Code Efficiency With Java Statics](https://i.ytimg.com/vi/RKk_umndooU/default.jpg)
![Turning Challenges into Opportunities: Lilia's Inspiring Journey](https://i.ytimg.com/vi/0LG1QclO0T0/default.jpg)
![How I Became an Automation Test Engineer?](https://i.ytimg.com/vi/frmEgCYy6lQ/default.jpg)
![Mastering Java Coding Skills | OOP Inheritance Part 2](https://i.ytimg.com/vi/4OsqFcnEBpQ/default.jpg)
![The Top 7 Myths Holding You Back from your Dream IT Job](https://i.ytimg.com/vi/0RzmWYKbEVI/default.jpg)
![What is the difference between driver close and driver quit?](https://i.ytimg.com/vi/e2R97HhiEdA/default.jpg)
![Grow your Network and get Hired! #short](https://i.ytimg.com/vi/Yp4RgbHGfpQ/default.jpg)
![CYDEO’s Powerful Community #shorts](https://i.ytimg.com/vi/p3ErSR7hQFs/default.jpg)
![Why do you use Java instead of another language?](https://i.ytimg.com/vi/gBLT2KUk69M/default.jpg)
![Don't Give Up, Work Hard, Believe in Cydeo!](https://i.ytimg.com/vi/ENkeLikx7Tk/default.jpg)
![Start Coding on a Budget](https://i.ytimg.com/vi/qUMeA5LNB1I/default.jpg)
![Learn, Grow and Never Give Up! How did Husna Break Barriers?](https://i.ytimg.com/vi/oLKo13MOkCA/default.jpg)
![CYDEO Brings Hope To Turkey #shorts](https://i.ytimg.com/vi/2ykt9_e6_cY/default.jpg)
![Java Coding Simplified: A Deep Dive into LocalDate and LocalTime](https://i.ytimg.com/vi/h_DnFZwuC-U/default.jpg)
![Best way to stand out on Linkedin #shorts](https://i.ytimg.com/vi/oK4QDuRNCeA/default.jpg)