Use : Chrome, selenium.
if driver.find_element_by_xpath(\'AAA\') == False: WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "BBB"))).click(