擅长:python、mysql、java
<p>首先,尝试将预期条件更改为<a href="http://selenium-python.readthedocs.org/en/latest/api.html#selenium.webdriver.support.expected_conditions.visibility_of_element_located" rel="nofollow">^{<cd1>}</a>:</p>
<blockquote>
<p>An expectation for checking that an element is present on the DOM of a
page and visible. Visibility means that the element is not only
displayed but also has a height and width that is greater than 0.</p>
</blockquote>
<p>请注意,您不需要再次找到该按钮,它将返回web元素:</p>
<pre><code>element = WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.ID, 'MyRadioButtonID')))
element.click()
</code></pre>
<hr/>
<p>此外,对于IE,设置更高的<a href="http://selenium-python.readthedocs.org/en/latest/waits.html#implicit-waits" rel="nofollow">implicit wait timeout</a>可能会产生积极影响:</p>
^{pr2}$