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 progress bar
From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
UI testing progress bar
For this test we have to track the progress of this progress bar and when it hits 75% we stop the same. To do that we can click on the start button to start the progress and you will see it increases the progress value and then when it will hit 75% or more than that we stop the same by clicking on the stop button. So let's wait for it to reach 75%, it has reached 75, click stop, and we stop the progress. Now you can see I stopped at 76% and the test says if your progress has stopped at 75% or more than that, then consider this test case passed. The closer you are to 75, the better your result. So let's go ahead and perform the same. Let's inspect our progress bar and it is a div element with a role of progress bar. So we can select the same using our get by role locator. And then we can also select the buttons using their tag name and the name on the same. So first of all, let's select our progress bar and we can use the get by role locator. it progress bar then we can select our…
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)
-
-
-
-
-
-
-
-
-
-