擅长:python、mysql、java
<p>问题2:</p>
<ol>
<li><p>单击下载按钮后,是否没有类名为“active”的webelement</p>
</li>
<li><p>通过这个xpath,您试图在哪个页面“/html/body/main/div/div[2]/div/div[1]/div/div[2]/div/div[2]/form/div[2]/input”中找到什么?
===========================================================================</p>
</li>
</ol>
<p><em><strong>更新:</strong></em></p>
<pre><code>driver.find_element_by_xpath(".//li/a[text() ='File']").click()
driver.find_element_by_xpath(".//input[@id='btn-download-file']").click()
</code></pre>