How to work with iframes
Sometimes Selenium cannot find a given element on a page and throws an error, even if you targeted it correctly.
99% of the times this is due to the fact that the element is inside an
To switch to the iframe's context we need to add an
ELEMENTACTIONblock, target the
<iframe>element and select the
Now, if you want to go back to the main context you can use
McDonalds last edited by
Man I wish I can really show you a live example of this but is still nothing working even if I targeted correct iframe
Maybe there are multiple iframes one inside the other? Have you tried checking?