擅长:python、mysql、java
<p>您可以使用以下代码:</p>
<pre><code>driver.get("https://e-civic.coquitlam.ca/tempestprod/webinquiry/frames.cfm")
driver.switch_to.frame("frame_map")
print(driver.page_source)
</code></pre>
<p>请注意,页面内容位于<strong>框架中</strong>。为了与位于<strong>iframe/frame/frameset</strong>中的<code>element/elements</code>交互,您必须将<strong>web驱动程序的焦点切换到相应的框架。在</p>
<p>希望这会有帮助。在</p>