Welcome guys.
Welcome to Playwright Python automation testing tutorial.
This is your instructor Rahul Shetty.
So in this course we will understand how to automate web and API applications using Playwright and Python
from scratch.
So we will begin with basics of Python and Pi test.
Pi test is one of the testing framework in Python, so we will learn both of them from scratch and then
move to understanding playwright.
So that way we will start learning step by step.
And by the end of this tutorial, you will be in a position to build a robust playwright Python testing
framework from scratch.
Okay, so in this particular lecture I want to cover three slides.
Why playwright?
Why playwright with Python language and how this course Curriculum is designed.
Okay, let's get started.
So there are a lot of automation tools in the market.
So why specifically playwright.
So basically this is a powerful automation tool for web testing browser automation primarily.
But you can also do API automation as well with a playwright.
So this is one single tool where you can accomplish 100% of browser automation as well as API automation.
Right.
So that compelling features makes it an excellent choice for QA professionals as well as developers.
So not only that, multi-language support.
So that means you can automate your playwright code in JavaScript, Python, C, sharp and Java.
So.
So you can use your favorite language as a choice to build playwright automation.
Okay, so there is a competitive tool for a playwright, which is a cypress.
So that is also one of the very good automation tool.
But that tool has to be written only on JavaScript.
But with playwright, you have a privilege that you can code in any of the top programming languages.
Okay, so selenium is also one of the browser automation tool where you can code in multiple languages,
and playwright is another one which does same.
Okay.
But one beautiful and unique feature for playwright is you can do both web and API testing so that you
can build scripts with integration of front end and back end calls.
So in this course there are some examples we will do where we will integrate both front end code as
well as back end code to build end to end automation test with very smart strategies okay.
So when you come to those sections you will understand where playwright excels compared to other testing
tools.
Right.
And using playwright you can automate in Chrome, Firefox and WebKit, Safari, as well as the top operating
systems like windows, Mac OS and Linux.
So these are the top browsers and top operating systems.
You can use playwright comfortably in any of these options available.
Okay.
So if you carefully observe number one, number three is provided by selenium as well.
Okay.
So what is special about playwright and where it stands.
Unique.
So there is something called automatic waiting mechanism in playwright.
So that means when you select any item or click on any link, and if you are waiting for a new page
or new component to load, so that load will automatically taken care by playwright.
Okay, so how much time it has to wait that all playwright inbuilt will take care, so it will wait
until that element is displayed loaded.
Right.
So you need not manually explicitly write the code asking to wait until that element is visible or that
element is clickable.
Inbuilt playwright does that, so you won't write any separate code for waiting or synchronisation.
So automatic waiting mechanism is inbuilt provided in the playwright which is the top unique feature
which made people look at this tool.
And it has inbuilt locks, inbuilt screenshots.
So you need not write one single line of code.
Extra everything.
You have inbuilt tools where it will generate locks by end of the test run, as well as screenshots
of before step and after step.
And you have excellent tools available for debugging.
You know, capturing details for failures.
Okay, it has everything what one can expect from automation tools Now, you understood the power of
playwright that multi-language automatic weights.
And it can do both web and API testing.
So why choosing Python?
So we just discussed that you can code playwright in JavaScript, Python and C sharp and Java.
Then why specifically Python could be your great choice because Python has a large market share than
any of the programming language.
Just Google and you will know about it.
Okay, so compare it to its peers like Java and JavaScript.
The Python market have largest share right now in the tech world.
Python also have less competition of resources compared to Java.
So post a resume on Java you will get hundreds of resumes, but out of which 50% of resumes only.
You will see if that skill set is on Python.
So I would call it as more popular, but less competition.
So it is easy for you to land in a new job.
Okay.
And more importantly, Python code.
If you see compare it to other languages.
It's a very lightweight and very simple syntax which allows beginners to quickly become productive.
So their learning curve will be very fast and they will ramp up within no time if they are beginners
on any programming language.
Okay, so Python is the best choice if you want to step into coding world for its simple and readable
syntaxes.
And you all know how artificial intelligence is booming.
So every machine learning models what were being built is based on Python core utilities.
So when these ML models are built on Python.
So there could be scope that more and more automation technologies also may rely on Python because overall
teams are moving towards unified tech stack.
So that means from development to testing, they follow one common stack.
So when development is heavy on Python because of all AI models are built on Python language.
So obviously the QA tech stack will also be on Python if the team want to follow unified tech stack.
So in that case, having Python knowledge to build playwright automation would be the right choice for
the teams to pick.
Okay, so as I said, because of large market share Python have the playwright with Python is becoming
more and more famous these days, and you guys are on the right track on choosing this course in learning
playwright with Python.
Okay, so in the next lecture, let's see how this course curriculum is designed so that one can master
in playwright with Python from scratch level.
All right.
Thank you.