ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
228 stars 29 forks source link

how to interact with iframe? #83

Closed bpkddr closed 2 years ago

bpkddr commented 2 years ago

hi,

how to interact to iframe, scroll, clict, etc?

thank before,

ClericPy commented 2 years ago

This is an advanced usage, you can find some information here: https://chromedevtools.github.io/devtools-protocol/tot/DOM/#type-Node

If it is a non-cross-domain iframe, you can also use JS to do that: https://stackoverflow.com/questions/19498725/control-iframe-content-with-javascript-html

But in my experience, I do it by opening a new tab with the iframe's src.