Answer the question
In order to leave comments, you need to log in
How to pull out the value on the site, if it is behind two nested iframes?
I need to pull out one value from the site
https://m.ru.investing.com/commodities/us-corn-adv...
But it's tricky. With three nested iframes
import time
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager(version="87.0.4280.88").install())
driver.get('https://m.ru.investing.com/commodities/us-corn-advanced-chart')
time.sleep(15)
driver.switch_to.frame(2)
Answer the question
In order to leave comments, you need to log in
Need a specific cursor position? It lies quietly in the code, without any iframes
<span class="lastInst pid-8918-last">464,60</span>
If nested domains are from the same domain, you can simply use contentWindow.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question