擅长:python、mysql、java
<p>要验证<code><td></code>元素的状态以将文本从<strong>正在运行</strong>更改为<strong>成功</strong>,可以使用以下任一解决方案:</p>
<ul>
<li><p><code>text_to_be_present_in_element</code>和{<cd3>}:</p>
<pre><code>element = WebDriverWait(driver, 20).until(EC.text_to_be_present_in_element((By.CSS_SELECTOR, "tbody#workflows>tr.selected>td>span.wf-status.wfsuccess"), "Success"))
</code></pre></li>
<li><p><code>text_to_be_present_in_element_value</code>和{<cd3>}:</p>
<pre><code>element = WebDriverWait(driver, 20).until(EC.text_to_be_present_in_element_value((By.CSS_SELECTOR, "tbody#workflows>tr.selected>td>span.wf-status.wfsuccess"), "Success"))
</code></pre></li>
</ul>