from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
# 显式等待模块from selenium.webdriver.support.ui import WebDriverWait
# 显式等待条件from selenium.webdriver.support import expected_conditions as EC
ok_button = WebDriverWait(driver,10,0.5).until(EC.element_to_be_clickable((By.ID,'select')))
ok_button.click()