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 visibility
From the course: Playwright Python and Pytest for Web Automation Testing: Master Modern Web Testing with Playwright and Pytest in Python
UI testing visibility
For this test, we have to check the visibility of these elements for different conditions. That is, in our test info, we have like an element may be removed, which is invisible. Then an element may have zero width and height. Now it is visible technically, but is not covering any space in our viewport. We can also check whether or not an element is overlapped by another element, which renders it invisible to us, but it is still in the document. Then there's another case where it may be hidden using opacity set to zero, the visibility set to hidden or the display set to none. And the last thing is that the element may be moved off screen entirely with its offset. In this test, we'll go ahead and perform these checks in these respective buttons. So the first thing is to locate all of these buttons and we'll do that using their button role and the text on the same. So let's go ahead and write the locators for all of the buttons. So hide button by use get by role locator. rule is button…
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)
-
-
-
-
-
-
-
-
-
-