I navigate to the website, switch to the correct iframe, and everything seems to work fine, but once I need to interact with an element it throws the error:
selenium.common.exceptions.ElementNotVisibleException
CODE:
# IMPORT
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
# NAVIGATE
driver = webdriver.Chrome("C:\\Program Files (X86)\\Google\\chromedriver.exe")
driver.get('http://www.foxnews.com/politics/2018/01/17/ice-plans-major-sweep-in-san-francisco-area-report-says.html')
# SWITCH TO IFRAME
iframe = driver.find_element_by_xpath('//IFRAME[contains(@src, "https://spoxy-shard4.spot.im/v2/spot/")]')
driver.switch_to.frame(iframe)
driver.find_element_by_xpath("//INPUT[@placeholder='Your nickname...']").click()
I've tried targeting other elements as well, but it always gives an error:
"no such element"
"element not found"
"is not clickable at point (485, 873). Other element would receive the click: <p class="alert-text">...</p>".