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.
Click to load comments...