Rayrun
← Back to videos

Handling different types of inputs | Playwright with Typescript & Jest - Part 7

Handling different types of inputs:

The video tutorial is about interacting with different types of input fields using Playwright, a browser automation tool. The video starts with the presenter explaining the difference between handling input fields in Playwright compared to other tools like Selenium.

The presenter then demonstrates how to handle input fields using Playwright by creating a test suite and writing individual tests. They show how to launch a browser, create a context and page, and navigate to a specific URL.

The video covers various interactions with input fields, such as typing text, appending text, and clearing text. The presenter uses different locators like CSS, ID, and XPath to locate the input fields. They also explain the optional chaining feature in TypeScript that allows for cleaner code.

The video concludes with the presenter closing all the objects (page, context, and browser) after each test execution to avoid memory leaks. They also encourage viewers to ask any questions and subscribe to the channel for future updates.

Related Videos

#16 - ARIA and how Playwright is making use of it to identify UI controls?
#16 - ARIA and how Playwright is making use of it to identify UI controls?
Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright Base URL | Playwright Tutorial - Part 39
Playwright Base URL | Playwright Tutorial - Part 39
Playwright Jest Config & Launch Browser | Playwright - Part 2
Playwright Jest Config & Launch Browser | Playwright - Part 2
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.