Playwright Automation Tutorial| Lecture-3| How Do We Click, Type and Press?

preview_player
Показать описание
In this video, you will learn how to interact with an element using Playwright.
There are three interactions that you will here- clicking, typing and pressing.
==============================================================

First, we need to know what is a locator.

A locator represents a way to find element(s) on a page

1. How do we click on a web element?
.click() method is used to click on an element
We can directly interact with the element or can create a variable to save the element first and then interact
2 How do we type to search something?
.type() method is used to type something on that element
3. How do we press the “Enter” button?
Рекомендации по теме
Комментарии
Автор

Thanks for sharing the video. Keep posting.

vishwaamk