dryscrape
dryscrape copied to clipboard
Interacting with iframes
How can I work with the elements inside an iframe? Is there a way to switch frames like Selenium does?
Selenium Docs
driver.switch_to_frame("frameName")
driver.switch_to_default_content()
There is no such feature as of to date.
I've compensated for this by using eval_script() getting content from the javascript side.
webSession.eval_script("document.getElementById('container-iframe').contentDocument.getElementsByClassName('node')[0].style.fill;") would return the fill color of the node inside of the iframe.