Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the equivalent of ExpectedConditions.not in Python

In Java one can use ExpectedConditions.not to wait until element is no longer visible or no longer can be found

wait.until(ExpectedConditions.not(ExpectedConditions.elementToBeClickable(By.id("id1"))));

What is pythonic way to do that?

like image 523
Witold Avatar asked Jan 23 '26 14:01

Witold


1 Answers

If you want to wait until element not (no more) clickable, try

wait.until_not(ExpectedConditions.element_to_be_clickable((By.ID,"id1")));

P.S. You should remember that element could be initially not clickable after page loaded

like image 148
Andersson Avatar answered Jan 25 '26 03:01

Andersson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!