Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select iframe inside of an iframe #167

Open
MakeFish-dev opened this issue Jul 26, 2024 · 1 comment
Open

Cannot select iframe inside of an iframe #167

MakeFish-dev opened this issue Jul 26, 2024 · 1 comment

Comments

@MakeFish-dev
Copy link

MakeFish-dev commented Jul 26, 2024

To reproduce:
outer_iframe = driver.select_iframe("#outer-iframe", wait=Wait.LONG)
inner_iframe = outer_iframe.select_iframe("iframe", wait=Wait.LONG)

I cannot select an iframe inside of an iframe. It gives the error below:
botasaurus_driver.exceptions.IframeNotFoundException: 9C0E4B0E77536D8A8161DEA46763A3B1

@FayzulSaimun
Copy link

You have to move to the first iframe first. Then you can select the first iframe.
Follow this: https://stackoverflow.com/questions/44834358/switch-to-an-iframe-through-selenium-and-python

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

No branches or pull requests

2 participants