WEBVTT

00:00.840 --> 00:01.380
Okay.

00:01.380 --> 00:06.510
So now we also need to have the what else should we get?

00:06.540 --> 00:10.320
We should get the let's try and get the hood also.

00:11.710 --> 00:14.410
So the neighborhood.

00:15.820 --> 00:17.410
Is where is that?

00:17.410 --> 00:22.230
If you use select element and click on it, I can see that it is resolved.

00:22.310 --> 00:22.870
Good.

00:23.230 --> 00:26.270
So let's try and look for that child element.

00:26.290 --> 00:30.970
It is still inside of the result info class, as you can see here.

00:30.970 --> 00:34.390
So it's still a child element of result info.

00:35.020 --> 00:39.520
So that means we can say, we can say const hood.

00:40.200 --> 00:42.240
And then we can say element.

00:42.270 --> 00:48.000
Remember that is the result info the selector we have going on here.

00:48.540 --> 00:50.370
Then we can say dot find.

00:50.400 --> 00:57.210
That's finding the child element and it's going to find the child element that has result hood.

00:59.320 --> 01:07.510
And now that we have that, I think we can just say dot text simply to get the text of it.

01:08.850 --> 01:14.190
Then we can just add it down here and let's see if the test is passing.

01:15.300 --> 01:19.170
It looks like we still have three test that is not passing.

01:19.930 --> 01:20.540
Let's see.

01:20.560 --> 01:28.440
Okay, so the reason the hood test is still failing is because I don't have a, um.

01:28.660 --> 01:36.520
I don't have a space in front of San Francisco, but in the code there is actually a space in front

01:36.520 --> 01:37.090
of it.

01:37.960 --> 01:46.300
Or in the HTML code there is Now to avoid that, I can well, I can either accept that there is a space

01:46.300 --> 01:48.880
in the code and just do like that.

01:49.150 --> 01:59.470
Then my test is going to pass and I'll have four tests that is passing or I can trim the hood text so

01:59.470 --> 02:00.550
I can say.

02:01.580 --> 02:03.050
A river.

02:03.170 --> 02:06.220
Salt dot text dot trim.

02:07.760 --> 02:14.840
So trim is going to remove these spaces in front and at the end of a string of a string.

02:16.030 --> 02:23.500
So now I have four tests that is passing, and the last one, I believe, is the date.
