1
00:00:00,330 --> 00:00:05,670
So in this lecture, we're going to see how we can actually use the trading information for all the

2
00:00:05,670 --> 00:00:11,640
trading information along with that particular screenshot, and we are actually going to see how we

3
00:00:11,640 --> 00:00:15,770
can actually make even more extracted screenshot information.

4
00:00:15,780 --> 00:00:19,400
So probably what I'm going to do is I'm just going to create one more file.

5
00:00:19,710 --> 00:00:24,620
I'm going to see a trace of extract or something like that.

6
00:00:24,960 --> 00:00:28,480
And over here I'm going to start doing those operations.

7
00:00:28,890 --> 00:00:33,840
So what I'm going to do is I'm not going to stop the trading over here.

8
00:00:33,840 --> 00:00:39,090
Probably I'm just going to take a bit further and I'm going to put the trading information over here

9
00:00:39,900 --> 00:00:41,660
and just see this guy.

10
00:00:42,240 --> 00:00:42,770
All right.

11
00:00:43,050 --> 00:00:48,360
And over here, what I'm going to do is I'm going to start extracting the trace information.

12
00:00:48,600 --> 00:00:57,570
So for doing that, I'm just going to put a concept of trace info, something like that, and then I'm

13
00:00:57,570 --> 00:01:00,240
just going to do a jasen dot pod.

14
00:01:00,420 --> 00:01:05,790
So we know that a part of the JavaScript language that Jasen is something which is already dead in Boult,

15
00:01:06,060 --> 00:01:07,110
which is quite good.

16
00:01:07,770 --> 00:01:10,650
So using this policy, you can actually do a lot of things.

17
00:01:10,650 --> 00:01:15,840
I mean, you can directly get this data on file and start working with it, but not read the file.

18
00:01:15,840 --> 00:01:22,650
We actually require another library called as EFS or it's a file system library.

19
00:01:22,980 --> 00:01:24,460
So you require that.

20
00:01:24,480 --> 00:01:27,860
So I'm just going to do a required of Eephus.

21
00:01:28,560 --> 00:01:34,320
This is quite good and I think it's like the system that I will in Java and Darknet.

22
00:01:34,860 --> 00:01:36,080
That's exactly what it is.

23
00:01:36,420 --> 00:01:39,970
So I'm just going to use this guy to read the file.

24
00:01:39,990 --> 00:01:48,630
So if I start to read File Sync and I'm going to read the file based on the file that I have, which

25
00:01:48,630 --> 00:01:58,230
is nothing but the restart JS on file over here, and I'm going to read that in the probably the UTF

26
00:01:58,650 --> 00:01:59,160
format.

27
00:01:59,990 --> 00:02:02,670
So UTF eight like that.

28
00:02:03,030 --> 00:02:05,510
And then I'm going to start doing that trace operation.

29
00:02:05,520 --> 00:02:15,430
So I'm just going to say something like consed of trace data is equal to trace info dot.

30
00:02:15,750 --> 00:02:20,760
So what I'm going to do is I'm going to do a trace events.

31
00:02:20,760 --> 00:02:31,110
So there is something called a stress event where you can actually do something like a filter of X such

32
00:02:31,110 --> 00:02:37,830
that I'm going to do something like this where I'm going to say X dot cat, which is nothing but the

33
00:02:37,830 --> 00:02:44,610
categories is equal to disabled by default screenshots, something like that.

34
00:02:44,880 --> 00:02:50,100
So I'm just going to put that guy over here and then I'm going to put some additional information like

35
00:02:50,310 --> 00:02:56,520
what name is called the screenshots and type of X not arcs as undefined and snapshot as undefined.

36
00:02:56,550 --> 00:03:01,320
I mean, you can get all this information from your developers if you are not pretty much aware, like,

37
00:03:01,320 --> 00:03:02,190
how are you going to do that?

38
00:03:02,190 --> 00:03:08,880
Because they actually write or put a lot of information for the performance tracing so you can use those

39
00:03:08,880 --> 00:03:12,620
option to be available for you over here.

40
00:03:12,630 --> 00:03:17,310
So I'm just going to put all those informations here and then we can actually extract that particular

41
00:03:17,310 --> 00:03:21,870
information and then we can create a screenshot and we can see how it actually works.

42
00:03:22,230 --> 00:03:29,490
So far doing that once again, I'm just going to do a trace data, dot, because this is going to be

43
00:03:29,490 --> 00:03:31,950
like a, uh, array of information.

44
00:03:31,950 --> 00:03:41,550
I'm going to use a foreach loop here and I'm going to write a function like SNAP, come on indexed.

45
00:03:41,970 --> 00:03:50,010
And within this particular function, I'm just going to do and I first start right.

46
00:03:50,010 --> 00:03:51,630
File of.

47
00:03:53,880 --> 00:03:59,760
I'm just going to say screen screenshot, because it's going to be the screenshot of all the trace information

48
00:03:59,760 --> 00:04:07,190
that we are doing and I'm going to use the here symbol for doing the string manipulation.

49
00:04:07,710 --> 00:04:19,230
I'm just going to say index dot PMG, come on, snap, dot, args, dot snapshot.

50
00:04:19,440 --> 00:04:22,560
Come on basis for a function of the errors.

51
00:04:22,560 --> 00:04:26,250
I probably need one more function here, which is going to take care of that.

52
00:04:26,400 --> 00:04:34,850
And if there is going to be any function error that you can destroy the console, the log of Right.

53
00:04:34,860 --> 00:04:36,360
Error, something like that.

54
00:04:37,200 --> 00:04:44,070
And I guess this is all right to put a close process because it's an iffy condition and that's it.

55
00:04:44,070 --> 00:04:45,210
I guess that's all good.

56
00:04:45,570 --> 00:04:47,370
So this way it's going to take a screenshot.

57
00:04:47,370 --> 00:04:51,140
It's going to pass those information and it's going to print those information.

58
00:04:51,150 --> 00:04:54,550
I mean, take those screenshots and it's going to show us over here, which is also pretty cool.

59
00:04:55,020 --> 00:04:57,770
So now let's try to see if this really actually works.

60
00:04:57,780 --> 00:05:03,470
So I'm just going to do a node of extract and I'm just going to run that guy right now.

61
00:05:04,800 --> 00:05:06,870
So I was going to respond the browser once again.

62
00:05:07,920 --> 00:05:14,070
And you can see that it has completed and now we are expecting some screenshots to come in here.

63
00:05:14,070 --> 00:05:15,990
And you can see that all the screenshots comes in.

64
00:05:16,320 --> 00:05:22,320
So you can see that all these screenshot is basically the screenshot that you actually saw on the timeline,

65
00:05:22,320 --> 00:05:22,940
all of that.

66
00:05:23,010 --> 00:05:24,230
So this is pretty cool, right?

67
00:05:24,240 --> 00:05:28,650
I mean, you have captured all the screenshot of that particular operation that you are performing,

68
00:05:28,980 --> 00:05:31,620
and it is also capturing just the screenshots.

69
00:05:31,620 --> 00:05:36,390
So you are basically extracting the information that you want and you are also showing that information

70
00:05:36,390 --> 00:05:37,980
over here, which is also pretty cool.

71
00:05:38,280 --> 00:05:43,740
So this is how you can actually keep extracting the events that you really required based on the category

72
00:05:43,740 --> 00:05:49,080
like how we did not edit video with this particular category and then you can get that, which is quite

73
00:05:49,080 --> 00:05:49,330
good.

74
00:05:49,590 --> 00:05:56,700
So these are the things that you can actually do over here on Playwright's trace operation using the

75
00:05:56,700 --> 00:06:02,760
very, very super simple stock tracing method and stop tracing method, along with a few more informations.

76
00:06:02,970 --> 00:06:08,170
You can actually do a lot of operations on your playwrite while doing modern testing that you really

77
00:06:08,190 --> 00:06:08,850
are required to do.

78
00:06:09,150 --> 00:06:13,580
So we do in our next lecture while we talk about video capture with playwrite.

79
00:06:14,100 --> 00:06:14,520
Thank you.
