The video for this lesson is currently being updated, please read the transcript instead.

Working with page objects

One thing that's not very neat about our code are these difficult-to-read CSS selectors we've used like this one [".item-summaries > :first-child > a"].

We know from the last video that what we're doing here is getting the anchor element from the first item summary on the home page. But next time we look at this code we're probably going to forget that and have to waste time figuring it out.

Page objects

To view the complete lesson you'll need to login or join this course.


Click to load comments...