擅长:python、mysql、java
<p>要单击动态元素,您需要归纳<code>WebDriverWait</code>()并等待<code>element_to_be_clickable</code>()和下面的xpath</p>
<pre><code>WebDriverWait(driver,10).until(EC.element_to_be_clickable((By.XPATH,"//span[text()='Sprint 1']"))).click()
</code></pre>
<p>您需要导入以下库</p>
<pre><code>from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
</code></pre>