I am using python 3.x Selenium WebDriver and I am making a for loop to go all through the elements of the page with limit the length of the elements in the class and then print number of iteration but it gets all visible and hidden elements how to get only visible element in the page.
To get all elements from the class I am using
showMore = driver.find_elements_by_class_name('getPhotos')