There are two Selenium primitives in that post. Java `FluentWait` is the same as Python `WebDriverWait` which I'm using. Then there's the condition you're waiting for, where I'm using lower-level primitives than the ones you're referring to. That allows me to pass `element_or_selector`, and results in code of similar complexity.