Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLuis Puentes
9,627 PointsHow to find the next element in the list?
I was wondering how you can find the second or third element in the list in this example?
I tried:
const secondItem = invitedList success.
I don't receive an error when creating the variable, but when I try to click the checkbox
secondItem.findElement(By.css("input")).click()
, this error shows up:
"Cannot read property 'findElement' of undefined"
Curious to see how this is done. Can someone please help me figure this out?