1
00:00:00,150 --> 00:00:09,120
All right, so before we go even further, I mean even further, cause if we want to right any launch

2
00:00:09,120 --> 00:00:14,750
options and things of that nature, all you're going to do is you can just do something like longe option.

3
00:00:14,760 --> 00:00:19,620
You can see that the class comes in and there is a large, persistent options which you can set even

4
00:00:19,620 --> 00:00:21,810
further details on the particular class.

5
00:00:21,810 --> 00:00:26,700
If you go to the large persistent option, you can see that it brings you up the contest provisions,

6
00:00:26,700 --> 00:00:32,970
class Keen's credentials record with the options and things of that nature, and it is actually using

7
00:00:32,970 --> 00:00:36,030
the launch option as the best class which does things for you.

8
00:00:36,160 --> 00:00:41,590
Yeah, so those things still remains the same on this particular language bindings.

9
00:00:41,590 --> 00:00:52,200
Haspel So I'm just going to use the lunch options or lunch option is equal to the new of the lunch options

10
00:00:52,500 --> 00:01:00,990
where I can actually set different properties over here so I can set something like the Headless so

11
00:01:00,990 --> 00:01:02,490
you can see that the property comes in.

12
00:01:02,490 --> 00:01:05,160
So hitless is equal to falls.

13
00:01:05,430 --> 00:01:10,090
And if I want to enable the dev tools that I can just step tools.

14
00:01:10,090 --> 00:01:11,010
That's true.

15
00:01:11,730 --> 00:01:18,810
And if I want to add anything else, like download pod environment, executable pods and slowmo so I

16
00:01:18,810 --> 00:01:20,750
can set the slowmo as well.

17
00:01:20,790 --> 00:01:28,350
So all these things remains pretty much exactly the same for this particular language binding assessment.

18
00:01:28,710 --> 00:01:30,390
So I can just copy this launch option.

19
00:01:30,780 --> 00:01:36,360
And if I paste this over here, you can see that it works because if you see in launch, I think they

20
00:01:36,360 --> 00:01:44,130
have the launch option, this option as one of the older property for the launch, I think constructor.

21
00:01:44,430 --> 00:01:46,590
So they remain the same as well.

22
00:01:47,910 --> 00:01:54,380
So if I try to run this and see what's going to happen, you can see that it's working fine as well.

23
00:01:54,630 --> 00:01:59,610
And the one thing that you need to know what is like in all the language bindings, we actually have

24
00:01:59,940 --> 00:02:05,580
the automatic weight of the payload as well, which is also quite good because with automatic weight,

25
00:02:05,730 --> 00:02:11,250
we can actually don't really have to write any of the weight mechanism.

26
00:02:11,400 --> 00:02:14,960
It's all taken care by itself, which is quite good as well.

27
00:02:15,210 --> 00:02:19,860
I mean, don't worry about the failure over here because we have modified the slowmo and we have enabled

28
00:02:19,870 --> 00:02:20,520
the tools.

29
00:02:20,850 --> 00:02:22,080
That's why it may be failing.

30
00:02:22,260 --> 00:02:26,190
But but yes, this is the idea that you really need to know as well.

31
00:02:26,730 --> 00:02:33,360
And going back to the examples like what they have at the moment, you can see that we can also do the

32
00:02:33,360 --> 00:02:39,000
network interception pretty much exactly like how we did for the other coding practices, like other

33
00:02:39,000 --> 00:02:39,720
language bindings.

34
00:02:39,740 --> 00:02:53,820
So if I just do a public housing task of network interception and if I just put a test like that and

35
00:02:53,820 --> 00:02:58,620
you can see that the coding is going to be pretty much exactly the same thing as well that comes on

36
00:02:58,940 --> 00:02:59,570
over here.

37
00:03:00,540 --> 00:03:02,880
Um, yeah, that's it.

38
00:03:03,570 --> 00:03:07,460
So it looks pretty cool as well.

39
00:03:07,470 --> 00:03:13,140
I mean, you can see that we can create playwrite Firefox, new context, new pages.

40
00:03:13,710 --> 00:03:16,730
And over here, I'm just going to write a page route.

41
00:03:16,740 --> 00:03:21,540
I think that I'm going to pass that Stollsteimer round underscore.

42
00:03:22,230 --> 00:03:26,690
And I'm just saying that just write the rawData you want them.

43
00:03:27,090 --> 00:03:31,560
And if I try to run this, you can see that it has got past.

44
00:03:31,860 --> 00:03:39,480
But if you see on the console, you can also get all the intercepted messages coming in, which it has

45
00:03:39,480 --> 00:03:42,030
written on the console lock, which is quite good.

46
00:03:42,690 --> 00:03:51,120
And similarly, we can try blocking the road, something like how we did in our earlier sections for

47
00:03:51,120 --> 00:03:55,560
the language bindings so we can do something like if.

48
00:04:03,220 --> 00:04:06,250
If they rodarte, that request dard.

49
00:04:10,460 --> 00:04:17,870
The resource type is equal to resource type dot image, so you can see that this is quite good in C

50
00:04:17,870 --> 00:04:23,750
Sharp then compared to the Java or the types of language bending because it's kind of strongly typed

51
00:04:23,750 --> 00:04:24,770
code like ENUM.

52
00:04:25,040 --> 00:04:27,310
So it is very easy to work with as well.

53
00:04:27,710 --> 00:04:29,810
And I can just do an apart I think.

54
00:04:31,460 --> 00:04:39,890
And if not just we can put on the ls and we can see and continuous and the code is going to work and

55
00:04:39,890 --> 00:04:43,490
I can just do an amazing dot com.

56
00:04:43,880 --> 00:04:49,490
And you should note here that I'm not closing the playwright anywhere and the browser anywhere because

57
00:04:49,490 --> 00:04:51,920
we are using this using over here.

58
00:04:51,920 --> 00:04:58,400
So the destruction is going to happen for this object over at the end of this particular test method

59
00:04:58,400 --> 00:04:58,780
itself.

60
00:04:58,790 --> 00:05:04,160
So it automatically take out of that particular destruction's and the garbage collections, which is

61
00:05:04,160 --> 00:05:04,740
quite good.

62
00:05:04,760 --> 00:05:09,590
We don't have to worry about any of these and those are going to be taken care for us automatically.

63
00:05:09,980 --> 00:05:10,310
Oops.

64
00:05:10,400 --> 00:05:18,830
I should have, uh, copy paste or the, uh, lunch option as well, because you don't really see.

65
00:05:24,440 --> 00:05:28,190
It's going to be coming, I don't really have to set the dev tools and stuff.

66
00:05:29,630 --> 00:05:31,130
Yeah, let's try to run that.

67
00:05:34,010 --> 00:05:40,070
So you can see that the browser is coming in and you can see that there is no image being loaded, which

68
00:05:40,070 --> 00:05:40,820
is quite cool.

69
00:05:41,180 --> 00:05:46,010
So this way we can see that we could be able to do the network interception for a particular image or

70
00:05:46,010 --> 00:05:46,540
something like that.

71
00:05:46,550 --> 00:05:50,510
So similarly, you can actually do for other options as well.

72
00:05:50,660 --> 00:05:57,440
So these are rather cool things that we can do and you can just try doing the exact same labs that we

73
00:05:57,440 --> 00:06:02,210
discussed in our earlier section in the JavaScript language binding in the C sharp as well, and see

74
00:06:02,210 --> 00:06:06,980
how it actually works is going to be pretty much exactly the same syntax and same same coding practices.

75
00:06:07,310 --> 00:06:08,360
There is no change at all.
