Selenium python переключатель на iframe

# go to iframe
driver.switch_to.frame(iframe)

# back to previous frame
driver.switch_to.parent_frame()
marcofaga