In my project I am using Implicitly_wait(timeout)
and
WebDriverWait(browser, 15).until(
EC.element_to_be_clickable((By.XPATH, 'locator'))
for waiting of elements which not visible or not on the page.
I have element on the page which size=0 in the first seconds. Now, for click on this element when size>0 I am using time.sleep()
, because implicit wait and expected conditions not working for this case(element on the page and it clickable).
Please, tell me, can I use some more stable method for waiting this element?
time.sleep
is not option for me, because I have a lot of such elements.