擅长:python、mysql、java
<p>您应该尝试禁用浏览器本机事件。感谢吉姆·埃文斯如此宽泛地解释<a href="http://jimevansmusic.blogspot.com/2013/01/revisiting-native-events-in-ie-driver.html" rel="nofollow">Native event</a></p>
<pre><code>profile = driver = webdriver.Ie()
profile.native_events_enabled = False
driver = webdriver.Ie(profile)
</code></pre>