There is Selenium + TestNG.
Test: check the discovery (enlarged image when hovering on the photo) photos. But it happens that the photo without this option, because of what the test falls.
Question: is there an option to put an if (and how correctly) that it checks for the presence of a zoom? And if this zoom is absent, then skip the test / step.
While tried if(элемент.isDisplayed()) {Тест} else {} . But he is still looking for him and does not miss the test if there is no zoom.