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 ID
From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
UI testing dynamic ID
UiTest Automation Playground. It's an open source project created for us to test our UI testing skills. In this section, we'll go over the same. Now you can find the link to the same in the resources. So let's go ahead and tackle the first problem, which is dynamic ID. Now you will find a pattern among all the test cases. That is first of all, you will have some information about the test, then you will have scenario or the steps which you need to take, and then the actual playground with the web elements you have to perform the test on. Now in short what this says is that in modern applications or modern websites, all elements are given dynamic IDs, classes and other attribute values. So we should not rely on them to select the elements. So if I go ahead and just inspect this button right here, which we need to click. You can see it has a ID, which is this. Now take a note of the same. When I refresh the page, the value gets changed to something different. If I go ahead and again…
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)
-
-
-
-
-
-
-
-
-
-