Hi, guys, my name is Karthik and I am from Automation Dotcom and welcomed an all new course from automation
on Internet test automation with playwrite.
And in this new course we are going to talk exclusively about playwrite.
I already discussed about many automation testing tools in my courses like Selenium, Cyprus, Puppeteer,
Protractor, Zamin, Latest ABMs and many of distinct tools.
But all these testing tool, if we look at them holistically, try to address some of the main key pain
point with the other tool and able to provide and they try to enrich or enhance in that particular area.
And all these automation distractor has many different language binding support, and they always try
to come up with some of the feature which the current or the existing tool doesn't really have, which
is really cool.
And this is trying to improve every time I try to see these testing tools.
And if we look at all these testing tools, what they do, especially as in principle or what are the
things that an automation testing tool should have or possess as a principle, are in general going
to look something like this.
This should have support of modern Web browsers and platforms like Chrome and Chrome, Safari, Firefox,
Opéra, things of that nature and platform like Windows, Macarius and Linux.
So this is really, really important.
If they also support some of the mobile operating systems, like I was an android, it is very, very
good as well.
So these are some of the support isn't just automation should have.
That's an important principle, especially when it comes to choosing an automation Destrehan to similarly
support our modern language binding like popular C, sharp Java, JavaScript, Python, Goaland and
all these languages.
So these are some of the most important aspect of automation as well.
Similarly, support of modern Web application tech stocks like React Engler and more new modern web
application tech stack, which comes in every now and then.
Those text tags should be supported well and then support of extensibility by third parties.
So these automation testing tools like selenium, in this case, we could have seen that.
I mean, testing tools, providers like Test Comp. Test Project, Catalona Studio, they try to extend
selenium a lot because selenium is highly extendable.
And similarly, any testing tool which is highly extendible can also get benefited because these Third-Party
companies can add some more features to the test automation tool that they are trying to extend with.
And that brings more benefit to that particular tool, which is also one of the important aspect and
support of continuous integration and continuous delivery.
Docker or any modern platform integration is really, really important, and that makes the life of
testers and developers much more easier because those are some of the intrinsic part of precent automation
testing era.
And finally, the testing tools should be opensource, are opensource to a certain degree, because
that's really important, because the way it does automation tool can be enhanced or can be enhanced
is by making that particular tool as opensource to a certain degree so that the community can start
contributing and make that particular tool more richer and more adaptable.
And that is the reason selenium got very, very famous.
So these are some of the guiding principle of a good automation testing tool.
And if you have all these things, then it is very, very easy for any person who is going to choose
that testing tool as their next testing tool for automating their application.
Malaz, it said Playwrite is a node library which provides a high level API to control Chrome, Firefox
and VEP, which is nothing but Safadi with a single API.
And that's really cool because you can see that playwrite is actually a modern testing tool and also
supporting modern browsers like Chrome, Firefox and Flipkart.
And Chrome includes Chrome browser Chrome browsers and any Chrome based browsers.
It can be even brail browser for that matter.
And similarly, Firefox, which is very popular and it is nothing but Safadi.
So these are modern browsers, which is being supported and Playwright's browser runs hitless by default,
but can be configured to run in headful mode along with various different modes.
I mean, we talk about the modes and browser support later in this course and playwrite is getting popular
and now has support of many famous language bindings and browsers, as we've discussed before.
So some of the popular language binding the time while I'm recording this video are JavaScript and TypeScript
Python, C, Sharp Galangal and Java.
So these are the language bindings which playwrite support the time.
While I'm recording this video, it can be very easily extended like other six or seven language pretty
soon, maybe the end of twenty twenty one, because I could see that in past two months or three months
in twenty twenty the C sharp go.
And Java supporters were added, so you can see that playwrite is just growing drastically and the language
binding support is also increasing pretty quickly at the moment.
And what of the other new features which it has got?
Well, playwright has got a call auto feature like it vapes automatically for the control to be available,
like completely visible or displayed or something like that.
And it can span multiple pages, frames and domains so you can do whatever scenarios that you are really
expecting to do.
Similarly, you can intercept the network activities and perform Stebbings, which are really, really
important because you can do some of the cool things, like you can intercept the network to see what
activity is being performed.
One of the important things I really like about playwrite is you can intercept the network in such a
way that you can get some of the most important analytics detail off your website and see if that particular
event or Ívar is being fired while you perform certain activities.
So because you know that most of the website comes in such a way that these websites comes along with
some analytics information like user's behavior or pattern on a particular website, those information
needs to be tested as well.
And it is pretty hard to test those in selenium or any other testing tool because you need to actually
intercept them and grab them.
I mean, Cyprus actually has that using intercept method.
You can do that.
And the exact same thing is available with playwrite, and it's much more sophisticated as well.
I mean, you will see while I talk about that in this course, similarly, you can create an UP-TO-DATE
automated testing environment and run your test directly in the latest version of Chrome and Firefox,
because it'll be automatically downloaded for you in the playwright.
And similarly, you can emulate the mobile devices, geolocation and permissions when you try to run
the test, because those are something you can do from that, from the tool which is available.
And Playwrite has the whole control over that.
And finally, it has the native disk recorder test runners and video captured capabilities, which makes
the testing tool even more adaptable and available for everybody.
So these are some of the cool things that you can do with playwrite, and you can see that these are
some of the most important and common features that any modern testing tool should possess and all those
modern features and tools that are already there with playwrite.
And this question, like many people are asking, like will playwrite replace selenium?
Well, playwrite is still maintained by Microsoft team with a huge roadmap in place and playwrite team
is committed to bring all the rich features with an automation testing tools and ecosystem requires.
And they are bringing CLIA with record and playback testers, various language bindings, browser supports,
active supports, and more so that they are bringing like a whole good rich ecosystem right now to make
it more available and accessible by everybody.
And, you know, Microsoft team, they're trying to push much harder with their Chrome browser.
And they wanted a testing tool which can also do the exact same thing for the community with all these
practices in place.
So the question about will replace Aeonium, I'm not definitely sure about that, but definitely Playwrite
is doing really, really awesome in the testing world.
And this clearly shows that the player, it has all the great features which mature to like selenium
has got along with a lot of modern capabilities.
But as did that insolation, part of it is very, very popular because it's quick installation, it's
super fast and easy to get started under 30 seconds because all you can do is NPM.
I find D a playwright if you're trying to install on a JavaScript based language.
So if you're going to work with maybe Java, the installation would be different.
If you're going to work with the C sharp language, meaning it's going to be different and for Goldwing
it's going to be different.
But for JavaScript and TypeScript, this is the command that you should be doing.
That node package manager should do the installation for you.
The same requirement is also very, very easy.
All you need to do is you need to have a node just installed within your machine.
So first thing to go and download the Norges for Windows are for Mac.
If you are using it in this whole course, we've been talking everything in the Mac operating system.
It doesn't matter.
You can use Windows or Linux.
Doesn't matter at all.
But I have Mac and one, so I'm just going to be using my Apple Mac and want to do all sorts of things
and we will see how it actually works with Apple.
One well, like a native support and we'll be using literally a code for developing the scenarios and
running the test like an idea for TypeScript and JavaScript.
You can use any of your choice, but I'm going to prefer using military code, which is much, much
easier to work with as well.
And for Java, we're going to use intelligent idy and for Darknet, we're going to use 2019.
And you should have a good Internet connectivity, which makes your testing journey much, much smoother
and easier.
Well, let's get started installing playwrite with JavaScript language and see how it actually works.
So in this section, we are going to fully focus on installing and getting things ready with playwrite
and see some of the great features that Peter has to offer for any testers.
And we'll just get acquainted with the playwright itself.
And for the next section, we'll talk about the basics.
And followed by that, we'll talk about a bit more advanced concept and then talk about frameworks and
things of that nature.
All right, let's get started.