I suggested earlier that we remove this loop as in this test case it doesn't matter if it's an image or a video. This loop you have carried over from a test that specifically needed to click on an image and not a video.