Searching Within Previously Found Elements

Automating web applications primarily involves finding elements in the DOM. Sometimes, however, we can't figure out the locator for the element we need, either because it is missing attributes, or there are simply too many elements with the same attributes.

Nevertheless, it will frequently happen that we know how to locate the parent or the sibling of the element we need. This is a common scenario in nested elements, such as a list with several items. In these cases, we can first locate the element that we know, and then search for the element that we need.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.86.134