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 dynamic table
From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
UI testing dynamic table
For this test, we will work on dynamic tables. Here we have a simple label with some tasks and their statistics. That is network usage, cpu usage and so on. Then we are given a label which says chrome cpu usage which is the percent right here. Now for this test, we have to expect this value to be equal to the value inside of our table which is this right here. First of all, we have to locate the same inside of our table and we can pretty much do it using the first row inside of our table and the fourth value inside of this row. But if I go ahead and refresh the page, well the things changed. The row of the chrome is now third and the CPU column is now second. Well, difficulty escalated pretty quickly. So what we have to do is handle this dynamic nature of this table when locating our desired value. So if I go ahead and inspect the same, you will find all of the elements having a role. is in the test info it is said that this table follows the y area table design pattern which means…
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)
-
-
-
-
-
-
-
-
-
-