From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
UI testing input field
From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
UI testing input field
For this test, we have to go ahead and test this text input field and make sure that the value gets used. That is, here we have to go ahead and enter something in this input field. Let's say Python. And then if you go ahead and hit this button, it should change to Python. That is the text we entered in the input field. So for this test, we have to expect this button to get or change to this text, which we write in our input field. So let's go ahead and do that. Now if I take a look at this input field, you can see it has a label, which is set new button name. So go ahead and locate it based on that. So our input page get by label and the label is this right here, which we just copied. Now I can go ahead and just create a QWERTY variable. Let's say great stuff. And then we'll go ahead and build that in inside of our input field. So let's put in the QWERTY. Now we can go ahead and select our button. So if I go ahead and inspect it, you can see it is a button with the class of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
UI testing dynamic ID3m 17s
-
(Locked)
UI testing class attribute3m 19s
-
(Locked)
UI testing hidden layer5m 2s
-
(Locked)
UI testing load delay3m 23s
-
(Locked)
UI testing AJAX request2m 25s
-
(Locked)
UI testing click action2m 4s
-
(Locked)
UI testing input field2m 34s
-
(Locked)
UI testing scrollbars3m 5s
-
(Locked)
UI testing dynamic table9m 45s
-
(Locked)
UI testing verify text2m 5s
-
(Locked)
UI testing progress bar5m 28s
-
(Locked)
UI testing visibility7m 19s
-
(Locked)
UI testing app login5m 30s
-
(Locked)
UI testing mouse hover3m 49s
-
(Locked)
UI testing nbsp character2m 14s
-
(Locked)
UI testing overlapped4m 40s
-
(Locked)
-
-
-
-
-
-
-
-
-
-