I have an unordered list after a button click and I want to get the number of how many ul
s are with paginated
class.
<ul class="paginated"> </ul>
Here is my code:
element = driver.find_elements_by_class_name('paginated')
print(len(element))
Sometimes I get 0 but there is one ul
with class = paginated
. I used time.sleep(1)
and it's working perfectly. But I want to make it more dynamical.
Can someone help me with a WebDriverWait
line code to replace that time.sleep
?