Lets say you have an element on a webpage found successfully
parent_element = driver.find_element_by_css_selector(some_css_selector)
I want to enact a WebDriverWait which waits until one of its child elements is clickable. Usually you would do that with
WebDriverWait(driver,30).until(EC.element_to_be_clickable((By.CSS_SELECTOR,some_css_selector)))
however in my case I want some_css_selector to be the child element of parent_element. How can I do this?
Edit: For instance - I have learned that I can do this:
wait = WebDriverWait(driver, 30)
child_element = wait.until(lambda d:parent_element.find_element_by_css_selector('child_selector'))
which seems to work. However this is just waiting until that child element appears. I want to use the expected conditions (such as element_to_be_clickable).