擅长:python、mysql、java
<p>首先,您正试图匹配只有一个类名<code>job-title</code>的元素,而那里有更多的类名,因此您应该在那里使用<code>contains</code>。像这样:</p>
<pre><code>jobs = driver.find_elements_by_xpath('//h4[contains(@class,"job-title")]')
</code></pre>
<p>您可能还必须在加载页面之前添加等待/延迟。<br/>
但首先你必须使用正确的定位器</p>