Element Identification Techniques - XPath and CSS for absolute begginers
Element Location Strategies using XPath, CSS & DOM Automating any application requires identification of the element & interact with it Locator are used for identifying the elements on the web page uniquely. There are so many ways to identify the elements in Selenium and those are called locators. Some of the most used and popular locators are XPath & CSS What is XPath? How do we use XPath in Elements identification? XPath (XML Path Language), is a query language for selecting nodes from an XML document. The XPath language is based on a tree representation of the XML document, and provides the ability to navigate around the tree, selecting nodes by a variety of criteria. XML contain one or more elements/tags/nodes An element may contain content/data or may contain other elements as child nodes. Each element should have starting tag and ending tag. The element content will reside in between these two tags. Apart from the content each tag may have ...
Comments
Post a Comment