Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Unable to select iframe using selenium
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")
Please edit your post so that the code is contained in Python code tags. You can find help here.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  To select only the latest value with Selenium codessu 2 171 May-16-2020, 03:51 AM
Last Post: codessu
  selenium click in iframe fails 3Pinter 6 315 Apr-29-2020, 12:59 PM
Last Post: Larz60+
  Selenium: accessing a drop-down menus without select tags ClassicalSoul 0 407 Apr-19-2020, 03:53 PM
Last Post: ClassicalSoul
  How to find which frame/iframe my element belongs to? smaria 1 307 Nov-18-2019, 09:21 PM
Last Post: Larz60+
  Unable to access javaScript generated data with selenium and headless FireFox. pjn4 0 636 Aug-04-2019, 11:10 AM
Last Post: pjn4
  Looping actions in an iframe using Selenium on Python amyd 3 734 Mar-06-2019, 08:31 PM
Last Post: Larz60+
  Selenium Parsing (unable to Parse page after loading) oneclick 6 1,201 Jan-13-2019, 03:10 AM
Last Post: oneclick
  scraping with multiple iframe jansky 1 1,669 Nov-09-2018, 11:12 AM
Last Post: snippsat
  unable to load file using python selenium purnima1 4 3,606 Dec-12-2017, 04:04 PM
Last Post: hshivaraj
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 1,347 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

Users browsing this thread: 1 Guest(s)