擅长:python、mysql、java
<p>在使用<a href="https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.wait.html#module-selenium.webdriver.support.wait" rel="nofollow noreferrer">WebDriverWait</a>与<a href="https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html#module-selenium.webdriver.support.expected_conditions" rel="nofollow noreferrer">expected_conditions</a>连接时,必须将定位器包含在元组中,如下所示:</p>
<pre><code>WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.ID, "RptViewer_ctl09_ctl04_ctl00_ButtonLink")))
</code></pre>