I have been trying to access data in an iFrame using Selenium and BeautifulSoup4
without any success.
I want to retrieve the data present in this dashboard.
Do you have any suggestions?
I have been trying to access data in an iFrame using Selenium and BeautifulSoup4
without any success.
I want to retrieve the data present in this dashboard.
Do you have any suggestions?
there is a many method
for example get iframe link with selenium (if it's dynamic) and load it directly
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
src = driver.find_elements_by_xpath("//iframe").get_attribute("src")
print(src)
driver.get(src)
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CLASS_NAME, "master-number"))
)
# now you can find element in iframe
#driver.find_elements_by_....
more info about wait