In this video, we are going to write our first test script to log in to a page.
In this video, the presenter Kaushik introduces the topic of Playwright and explains how to write a script using Playwright. He starts by discussing the different ways to locate elements on a web page using Playwright's element selectors. He demonstrates how to locate and click on a login button using the
click function and a text selector. He also shows how to fill in input fields using the
fill function. The presenter then explains the concept of automatic waiting in Playwright, where the script waits for an element to become clickable before performing an action on it. He demonstrates this by waiting for a toast message to disappear before clicking on a sign-up button. The presenter ends the video by running the script and showcasing the results, including any test failures. He also mentions the use of the Jest CLI to run specific test cases in Playwright. Overall, the video provides an introduction to Playwright and covers the basic concepts of locating elements, interacting with them, and handling asynchronous calls.
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 email@example.com.