WEBVTT

00:02.040 --> 00:05.080
Now let's try and see if we can get the URL.

00:05.130 --> 00:12.000
So we say again for the URL is actually inside the same element as the title.

00:12.000 --> 00:19.440
As you can see here, there's the a element with the H href and that has the the URL.

00:19.770 --> 00:26.310
So we simply need to get the same element and get the the attribute href instead.

00:27.680 --> 00:37.340
So we can go and say, okay, we can go and say const title element and just take this instead.

00:38.470 --> 00:41.650
I'm going to cut that and paste it in here.

00:42.490 --> 00:47.320
And then we can say title element dot text instead.

00:49.160 --> 00:53.960
And then to get the URL, we can say title element.

00:55.090 --> 00:58.090
Dot attribute ref.

00:59.330 --> 01:01.010
So now we have the URL.

01:01.580 --> 01:05.420
Let's go ahead and add that to the element we're returning.

01:06.320 --> 01:10.490
And now we have three tests that is passed.
