element = WebDriverWait(driver, 10).until( EC.invisibility_of_element_located((By.ID, 'button'))
您无需使用一段时间。它已经等待您在WebDriverWait()函数中显示的时间。

element = WebDriverWait(driver, 10).until( EC.invisibility_of_element_located((By.ID, 'button'))
您无需使用一段时间。它已经等待您在WebDriverWait()函数中显示的时间。