When you chain find
methods, you are saying to find node A and within that find node B and within that find node C. As you are using CSS-selectors for each find
, this is equivalent to using the CSS-selectors to search for descendants. Descendant searches are performed by simply adding a space between selectors.
The three find
methods can be combined into a single find
as:
find('#instructors .caption h2').should have_content('full_name')