Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium click in iframe fails
#3
hmmm yes, it is empty. so that explains the non click action.

Strange though since the xpath is correct (looking at the html of that nested iframe)

Altering the xpath to something like:
element = driver.find_element_by_xpath('//input[@value="SIGN IN"]')
# element by xpath = <selenium.webdriver.remote.webelement.WebElement (session="74feb924af78ffa24ec43105c5c80ffc", element="602b289d-b6ff-45e4-aeb7-3ed415cd942b")>
However when I add the click() to it ... nothing happens.
element = driver.find_element_by_xpath('//input[@value="SIGN IN"]')
element.click()
Reply


Messages In This Thread
selenium click in iframe fails - by 3Pinter - Apr-20-2020, 06:49 PM
RE: selenium click in iframe fails - by Larz60+ - Apr-20-2020, 09:03 PM
RE: selenium click in iframe fails - by 3Pinter - Apr-21-2020, 06:18 AM
RE: selenium click in iframe fails - by 3Pinter - Apr-27-2020, 08:35 AM
RE: selenium click in iframe fails - by Larz60+ - Apr-27-2020, 03:55 PM
RE: selenium click in iframe fails - by 3Pinter - Apr-29-2020, 07:32 AM
RE: selenium click in iframe fails - by Larz60+ - Apr-29-2020, 12:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click on a button on web page using Selenium Pavel_47 7 4,771 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Selenium suddenly fails to find element Pavel_47 3 6,385 Sep-04-2022, 11:06 AM
Last Post: Pavel_47
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,870 Jun-07-2020, 04:42 PM
Last Post: samlee916
  Hyperlink Click is not working in Selenium webdriver rajeev1729 0 2,049 May-02-2020, 11:21 AM
Last Post: rajeev1729
  How to find which frame/iframe my element belongs to? smaria 1 2,083 Nov-18-2019, 09:21 PM
Last Post: Larz60+
  Python Selenium .click() Loads Error - Works Manually.- Events not Triggered NSearch 24 11,959 Aug-14-2019, 02:23 PM
Last Post: NSearch
  Selenium click on popup button??? GuJu 7 8,014 Jul-20-2019, 09:21 AM
Last Post: Nizam
  Looping actions in an iframe using Selenium on Python amyd 3 3,065 Mar-06-2019, 08:31 PM
Last Post: Larz60+
  Click Element if displayed using Selenium and Python giaco__mar 1 3,566 Dec-27-2018, 06:19 PM
Last Post: metulburr
  scraping with multiple iframe jansky 1 4,243 Nov-09-2018, 11:12 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020