Python Forum

Full Version: Unable to select iframe using selenium
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to automate login process for web page, login form is an iframe and I am trying to switch to iframe using the id, but it does not work at all. Any help will be appreciated.

from selenium import webdriver
from import By

driver = webdriver.Chrome(executable_path=r"C:\test\chromedriver.exe")
driver.find_element_by_link_text("Sign In").click()
iframe = driver.find_element_by_id('webauthPanelIFrame')
username = driver.find_element_by_name("email")
username.send_keys("[email protected]")
Please edit your post so that the code is contained in Python code tags. You can find help here.