我无法从列表中选择“Wiley”
driver = webdriver.Chrome(executable_path=r"D:\Python\Lib\site-packages\selenium\chromedriver.exe")
driver.maximize_window()
wait = WebDriverWait(driver, 10)
driver.get('https://www.webofknowledge.com/')
wait.until(EC.visibility_of_element_located((By.XPATH, "//*[@id='select2-shibSelect-container']"))).click()
您可以使用selenium Select类来选择选项。详情here
备选案文1:
备选案文2:
相关问题 更多 >
编程相关推荐