RSpec::HTML uses method chaining to traverse the Document Object Model (DOM).
Access a <td> tag anywhere in the document:
| Name | |
|---|---|
| user@example.org | Example User #1 |
| user@example.com | Example User #2 |
Or specify the full node tree explicitly to ensure your document’s structure:
| Name | |
|---|---|
| user@example.org | Example User #1 |
| user@example.com | Example User #2 |