Course lesson
Given how web pages are built nowadays, you might find yourself with multiple instances of the same element.
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.
Course lesson
Given how web pages are built nowadays, you might find yourself with multiple instances of the same element.