How would I accomplish the following in python's selenium:
el = WebDriverWait(self.driver, 10).until(
expected_conditions.js_return_value(
("return document.readyState === 'complete' ? true : false")
)
)
I've seen ways to do the above in Java, but cannot find a similar solution in python