Course lesson
Constrain a Query to a Specific Element Using Within
Given how web pages are built nowadays, you might find yourself with multiple instances of the same element.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
Given how web pages are built nowadays, you might find yourself with multiple instances of the same element.
To avoid querying for a list of elements and then filtering them down, you can constrain your query to a specific area.
In this lesson, we are going to learn how to leverage the within helper to constrain our query to a specific element.