Tags and attributes of selectors
In this section, we'll learn more about how to use the tags and attributes of selectors. As we mentioned previously, selectors consist of a group of nodes of a specific element in a detailed hierarchical order. This is very similar to the address order we use for identification; that is, country > city > ZIP code > street name > street number > apartment number. The structure of selectors can be represented as follows:
<Node 1>
will primarily be the parent node or root node; the last node, <Node n>
, will be the one you are likely to be be interested in because it usually represents the UI element and the previous nodes are the parents of that element. Each node has attributes to help you identify the element in the user interface such as windows, tables, links, text boxes, buttons and so on and it's essential to understand the attributes of each...