如何过滤具有相同类的元素?
<html>
<body>
<p class="content">Link1.</p>
</body>
<html>
<html>
<body>
<p class="content">Link2.</p>
</body>
<html>
Run Code Online (Sandbox Code Playgroud) 我想在 selenium 代码中使用 xpath,但我不知道如何从站点代码中获取它。我正在使用 Google Chrome 网络浏览器,而且我在这方面很新。
selenium ×2