frame
The command to switch the driver's context to the frame given its name or id.
Last updated
<div>
<frame id='foo'>
<a href='/different-page' id='bar'>Link in iframe</a>
</frame>
</div>py.switch_to.frame("foo").get("#bar").click()