P22 - XPath Full Course in తెలుగు | Selenium | తెలుగు |

Описание к видео P22 - XPath Full Course in తెలుగు | Selenium | తెలుగు |

In this video, I have explained about "XPath Full Course in తెలుగు".

Video Timeline:
00:00 Chapter 0 - Getting Started
10:14 Chapter 1 - Introduction
15:54 Chapter 2 - Types of XPath
29:38 Chapter 3 - XPath using Attributes
52:11 Chapter 4 - XPath Operators
01:09:11 Chapter 5 - XPath Conditions
01:25:37 Chapter 6 - XPath with Index
01:38:04 Chapter 7 - XPath Functions
02:10:06 Chapter 8 - XPath Axes
02:43:05 Chapter 9 - XPath Shortcuts
02:58:48 Chapter 10 - Third Party XPath Tools
03:26:31 Chapter 11 - Common Mistakes

The below website is used for practice: 👇
https://www.hyrtutorials.com/p/add-pa...

You can find the program used in this video at the below location: 👇
https://bit.ly/2SCrhxD

XPath (XML Path Language) is a query language for selecting nodes from an XML document.
Or in other words, XPath is a query language for finding elements in an HTML web page.

Xpath is defined by the World Wide Web Consortium (W3C).

There are two types of XPath available:
1) Absolute XPath
2) Relative XPath

➳ Absolute XPath
It starts with the root element of the document.

Example:
/html/body/div[1]/div[3]/form/div[1]/div[1]/div[1]/div[1]/div[1]/input

➳ Relative XPath
It starts from any point in the document based on the search criteria.

Example:
//input[@id=‘abcd’]

------ XPath Operators ------
= Tests whether two expressions are equal.
< Tests whether the first expression is less than the second.
<= Tests whether the first expression is less than or equal to the second.
> Tests whether the first expression is greater than the second.
>= Tests whether the first expression is greater than or equal to the second.
!= Tests whether the two expressions are not equal.
and - Tests whether both the first and second expressions are true. If the first expression is false, the second is not evaluated.
or - Tests whether either the first or second expressions are true. If the first expression is true, the second is not evaluated

------ XPath Functions ------
text() - Selects the text nodes of the current context node.
Contains() - Contains method is used when we know about the partial attribute value or partial text associated with the web element.
Starts-with() - starts-with method is used when we know about the initial partial attribute value or initial partial text associated with the web element.
normalize-space() - The normalize-space function ignores the leading, trailing, and repeating white spaces, that means after applying the normalize-space the text become normalized with no line breaks, and give a proper sentence.

------ Examples ------
//td[text()=5000]
//button[@id='refreshBtn' and @value='Refresh']
//button[@id='refreshBtn' or @value='Refresh']
//a[text()='Sign in']
//a[contains(text(),'Sign')]
//button[contains(@class,'sign')]
//div[starts-with(@class,'container')]
//label[normalize-space(text())='First Name']

XPath Axes methods are used in finding the dynamic elements which do not have a unique attribute value.

An axis represents a relationship to the context (current) element and is used to locate elements relative to that element on the DOM.

----- Axes names/methods ------
👉 ancestor
👉 ancestor-or-self
👉 descendant
👉 descendant-or-self
👉 preceding-sibling
👉 following-sibling
👉 parent
👉 child
👉 following
👉 preceding

▶ Next Video link:    • P23 - Perform Mouse  Actions in Selen...  
◀ Previous Video Link:    • P21 - How to get WebElement propertie...  
↔ Selenium Java in Telugu Playlist link: https://bit.ly/3tL7Z9S

✴ Checkout my other playlists: https://bit.ly/3gLIAVL

☕ Buy me a coffee: https://bit.ly/33ljBWc

👑 Join my YouTube channel to get access to perks:👇
   / @hyrtutorials  

==============================================
==============================================
Connect us @
🔗 Website - https://www.hyrtutorials.com
🔗 Telegram - https://t.me/hyrtutorials
🔗 Facebook -   / hyrtutorials  
🔗 LinkedIn -   / hyrtutorials  
🔗 Twitter -   / hyrtutorials  
🔗 Instagram -   / hyrtutorials  
==============================================
==============================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.

#hyrtutorials #selenium #telugu #java

Комментарии

Информация по комментариям в разработке