
Explore how Playwright speeds up web automation, generates reports and videos, and how modifying scripts helps you build robust tests with Python.
Install Python and PyCharm on your device, verify with python --version, and use the PyCharm Community Edition to create a new project with a virtual environment.
Install pytest and Playwright, set up a virtual environment in pycharm, install the pytest-playwright plugin, and verify installations with version checks.
Learn to control Python versions across projects by using global and local environments, creating per-project virtual environments, selecting interpreters in PyCharm, and managing packages with pip.
Learn how to use Python as a calculator, performing arithmetic, manipulating strings and lists, calculating area and tax, and basic program structure with variables, prints, and a simple while loop.
Master Python control flow by implementing if and for loops, handling while loops, and manipulating dictionaries to filter active users and print results.
demonstrates range in python for loops with start end and step, and uses break, continue, else, pass, and match case for errors.
Learn Python functions by defining inputs and outputs with def and return, using examples like a square root and a fibonacci generator, and exploring defaults, prompts, retries, and error handling.
Learn object-oriented programming in Python by building a dog class with a constructor and tricks, then explore modules, imports, and inheritance with Labrador.
Learn error handling in Python with the try and except pattern, observing syntax errors, zero division, type errors, and name errors while keeping code from crashing.
Discover why Playwright is the fastest, most reliable end-to-end testing framework built by Microsoft, with an easy setup and features like the trace viewer and test generator.
Explore why Playwright, the fastest open source web test framework from Microsoft, offers broad browser support, cross-language bindings, Docker and CI/CD integrations, and reliable features like smart assertions and videos.
Compare Playwright to Selenium; explain that Playwright uses a single websocket connection, keeping the socket open to exchange commands quickly, reducing points of failure and speeding test execution.
Compare Playwright and Selenium on browser support, language options, and performance, noting Playwright's faster, event-driven, single-socket tests across Chromium, Firefox, and WebKit.
Compare Playwright and Cypress for web automation: Playwright supports multiple languages and multi-domain testing with speed and simplicity, while Cypress offers JavaScript focus, real device support, and abundant docs.
Set up a PyCharm project with a Python 3.10 virtual environment to run your first Playwright script, using synchronous and asynchronous APIs.
Record actions on a web page with Playwright code gen to auto-generated test scripts, then run the generated code in asynchronous Python, JavaScript, Java, or C#, and even Pytest.
Explore how to use playwright in interactive mode with Python, launching chromium, creating pages, navigating to YouTube, and capturing screenshots directly from the command line.
Learn how Pyinstaller bundles Playwright tests into a single package with all dependencies, enabling running without Python installed and useful for companies writing test cases.
Enable tracing in Playwright with Python, start the trace, capture screenshots and snapshots, and save a trace.zip to view an interactive trace viewer report.
Learn to integrate pytest with Playwright by using fixtures like page and browser type, write concise tests, and run them in browsers with optional slow motion.
Explore nine command line arguments for Playwright tests, including headed, browser, browser channel, slow mode, device emulation, output, tracing, video, and screenshots.
Explore how fixtures in pytest integrate with Playwright, covering function and session scope, and use built-in fixtures like browser context, page, and browser type to simplify test cases.
Master pytest markers skip_browser and only_browser to skip or run a single browser in Playwright tests with Python. The course demonstrates test_skip_browser.py and test_only_browser.py across chromium, firefox, and webkit.
Record Playwright tests with video while ignoring http errors using a test fixture in Chromium browser.
Learn to set custom viewport sizes in Playwright to test web pages at multiple resolutions, including 1920x1080 and 400x400, and prepare tests for tablet and phone layouts.
Learn to run test cases on a specific device using Playwright, configure a browser context with iPhone 11 pro device emulation, and apply it across your test suite.
Explore setting a persistent browser context in Playwright with Python, using a session-scoped fixture to configure language and browser type for test runs.
Define and run Python test cases with the unit test class and fixtures, driving microsoft.com via a Playwright page, then validate with page.evaluate assertions and code generator tips.
Learn to debug Playwright tests by inserting breakpoints, launching the PDB debugger, and running tests in headed mode, then use page.locator to interact with Bing and validate behavior.
Master Playwright’s auto-waiting to ensure elements are attached, visible, stable, and enabled before actions, with force commands and page checks guiding API testing and browser interactions.
Learn to set up PyCharm with Python 3.10, install pytest and Playwright, and perform API testing against the GitHub API using fixtures and API context to create and delete repos.
Create and verify API test cases that post GitHub issues for bug reports and feature requests, then retrieve and assert issue titles and bodies.
Learn how to implement assertions in Playwright with Python for automation testing, verifying button text and element visibility using expect and page.locator.
Automate login to GitHub using Playwright and Python by navigating to the login page, entering credentials, submitting, and verifying redirection to GitHub.com.
Explore browser contexts in Playwright and Python, creating single and multiple contexts with different resolutions, languages, and geolocations to test pages like YouTube and Google across multiple windows.
Master the playwright command line tools to install browsers, manage cookies with storage files, generate code, and run tests across devices, with options to create PDFs and emulate iPhone 11.
Discover how to debug Playwright tests using the Codegen tool, run a sample test against microsoft.com, and inspect steps with the Playwright inspector and post keyword.
Automate the JetBrains PyCharm download with Playwright and Python, locating the Windows download button, capturing the download event, and printing the info to a text file for verification.
Explore emulation in Playwright by simulating devices, viewports, and settings like geolocation, time zone, color scheme, and user agent; create multiple contexts to compare pages at different resolutions.
Explore handling events in Playwright to monitor network requests, page creation, and workers; subscribe to events, print request URLs, and observe request lifecycle across Wikipedia.org and Openstream app.
Explore how frames display a page inside another using Playwright and Python, and build tests with frame locators, iframe interactions, and codegen.
Learn to automate form inputs using Playwright and Python, filling fields, radio buttons, checkboxes, and date selectors with Facebook registration as a practical test case.
Master web automation with Playwright and Python by automating checkbox interactions, clicking and deselecting options, checking states with is checked, and typing into fields.
Learn how to automate file uploads with Playwright in Python by creating a test, navigating to a page, setting the file input with a path, and uploading.
Master web navigation with Playwright and Python by automating Instagram flows, going to pages, waiting for URLs, and filling signup and forgot password forms with locators.
Monitor network traffic with Playwright and Python by subscribing to request and response events using lambda expressions, logging method, URL, and status as you navigate python.org.
Explore browser contexts, manage multiple pages and pop-ups with Playwright and Python, navigate to URLs, locate elements, perform searches, and print page URLs.
Learn how to document Playwright and Python tests by automatically capturing screenshots, videos, and trace reports, using simple code to record, save, and review test runs.
Navigate to the UI testing playground, click load display, and validate the load delay page with Playwright in Python, using auto waiting and URL checks before interacting.
Learn how to automate ajax data tasks with Playwright and Python by clicking a button, waiting up to 15 seconds for the ajax-loaded label to appear, and validating its text.
Mastering web automation with Playwright and Python shows how to perform reliable clicks and verify outcomes by watching a button change from primary to green after a click.
learn to automate text input testing with playwright and python by filling fields, clicking the submit button, and asserting the button text updates while handling enter key behavior.
Master scroll handling in Playwright and Python by locating hidden elements using scroll bars, moving to the bottom-right, and clicking the hidden button in the automation playground.
Master dynamic tables with Playwright and Python by extracting the chrome CPU percentage from an updating table, using locators, inner text, and loops to align data.
Track a progress bar in real time using Playwright and Python, start the test, wait for 75%, and stop the test when the stop button is reached.
Automate a login and logout flow for a sample app using Playwright and Python, locating username and password fields and validating the welcome text after login.
Track mouse actions in real time by creating a Playwright and Python test that clicks the 'click me' link twice and asserts the badge value matches the number of clicks.
Learn to handle overlapped elements in Playwright by automatically scrolling to reveal the name field, then fill the id and name fields and verify success.
Create a GitHub project with pytest and Playwright to automate todo tickets via the API. Set up a classic Kanban project and generate a personal access token.
Create authentication fixtures for Playwright tests with pytest, using environment variables to access GitHub securely. Define fixtures for GitHub username, password, access token, and project name across tests.
Create a session-scoped fixture to access the GitHub API with Playwright's sync API. Build a request context with the base URL and token headers, then yield and dispose.
Create a session-scoped fixture to verify a GitHub project's presence by hitting the GitHub API, parsing the response, and preparing to access project columns and IDs.
Learn how to fetch and validate GitHub project columns using pytest fixtures with Playwright, including creating fixtures for project columns and column IDs, and handling API responses.
Create a first test case to add a project card using Playwright and pytest with GitHub authentication, log requests and responses to a file, and verify the card by retrieval.
Move a project card from to do to in progress on GitHub using Playwright and Python, with logging, API interactions, and drag-and-drop verification.
Unlock the full potential of web automation with our comprehensive course, "Mastering Web Automation with Playwright and Python." Whether you're a software tester aiming to streamline your testing process, a web developer looking to enhance your development workflow, or an automation enthusiast eager to explore the world of browser automation, this course is your ultimate guide.
Navigate through a journey of practical knowledge and hands-on experience as you delve into the powerful combination of Playwright and Python. From the very basics to advanced techniques, this course equips you with the skills needed to confidently automate web interactions and elevate your automation projects.
What You'll Learn:
Lay the foundation with Playwright basics, setting up your environment, and recording your first scripts.
Master PyTest for organized and efficient testing, leveraging command-line tools, and utilizing powerful fixtures.
Dive into advanced interactions by automating dynamic content, handling diverse inputs, and conquering scrollbars.
Seamlessly integrate automation into your GitHub projects, from authentication to managing project cards.
Perform API testing with Playwright and Python, and craft comprehensive test cases with assertions.
Explore debugging techniques to troubleshoot issues and ensure reliable automation.
Gain insights into GitHub project management automation, creating, moving, and optimizing project cards.
Enhance your skills with device emulation, auto-waiting strategies, and efficient wait management.
Capture screenshots, record videos, and effectively handle downloads for thorough testing.
Navigate complex web scenarios with confidence, from mouse over interactions to dealing with overlapped elements.
Join us on this immersive journey, where you'll learn not only the technical aspects of Playwright and Python but also the best practices to excel in web automation. By the end of this course, you'll have the tools and knowledge to automate interactions, optimize testing, and manage projects with ease.
Don't miss out on becoming a proficient web automation specialist. Enroll today in "Mastering Web Automation with Playwright and Python" and open doors to a world of streamlined, efficient, and dynamic web automation.