Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Interacting with iframes #68

Open
bkvaluemeal opened this issue Dec 12, 2016 · 2 comments
Open

Interacting with iframes #68

bkvaluemeal opened this issue Dec 12, 2016 · 2 comments

Comments

@bkvaluemeal
Copy link

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

@niklasb
Copy link
Owner

niklasb commented Jan 2, 2017

There is no such feature as of to date.

@PoesRaven
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants