dryscrape icon indicating copy to clipboard operation
dryscrape copied to clipboard

Interacting with iframes

Open bkvaluemeal opened this issue 8 years ago • 2 comments

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()

bkvaluemeal avatar Dec 12 '16 04:12 bkvaluemeal

There is no such feature as of to date.

niklasb avatar Jan 02 '17 17:01 niklasb

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.

PoesRaven avatar Dec 04 '18 16:12 PoesRaven