In this lesson from the "Test Guild UI Automation with Playwright" course, Artem Bondar introduces you to the Playwright framework and guides you through the installation and initial setup. Here's what you'll learn:
1. **Framework Overview**: Get a comprehensive understanding of the Playwright framework structure, including how to run and debug tests and read reports.
2. **Installing Playwright**: Learn how to install Playwright from scratch in a new folder, setting it up as an independent project. Follow step-by-step instructions to create a new folder, open it in Visual Studio Code, and execute the `npm init Playwright@latest` command to initiate the installation.
3. **Configuration Options**: Understand the configuration process, including choosing between TypeScript and JavaScript, setting up the default test folder, and installing Playwright browsers (Firefox and WebKit).
4. **Folder Structure Explanation**: Dive into the details of the generated folder structure:
- **node_modules**: Houses all libraries and components, including Playwright.
- **test**: Contains your test files, with examples created by Playwright.
- **.gitignore**: Lists folders and files to be excluded from the Git repository.
- **package.json**: Describes the project, including npm scripts and dependencies.
- **package-lock.json**: Locks the configuration of your framework to avoid compatibility issues.
- **Playwright.config.ts**: The main configuration file for tweaking framework settings.
5. **Running and Debugging Tests**: Preview what’s next as you begin to explore Playwright’s capabilities, including running, interacting with, and debugging tests.
By the end of this lesson, you will have a fully set up Playwright framework ready for use, providing a solid foundation to start running and debugging tests in the upcoming lessons. See you in the next lesson!
Comments are closed.