擅长:python、mysql、java
<p>好吧,所以你不能直接用普通的方法。Selenium WebDriver是用来模拟浏览器的实际使用的。但是,可以使用execute_script函数。(javaselenium有一个内置的JavascriptExecutor类,我假设这是python的版本。)execute_script函数允许Selenium执行人类与浏览器交互无法完成的任务。在</p>
<pre><code>driver.execute_script("document.getElementById('buttonid').click()")
</code></pre>
<p>或者说应该有办法。希望对你有帮助。在</p>