Selenium: frames and iframes

Last updated on:

From time to time you facing iframes in web applications, usually if you trying to interact right away, well your script is failing, why would it fail?

Well in order to work inside iframe you have to switch to it:

driver.switchTo().frame("iframe name");

At some point when you finish working in iframe, you would need to switch to default content back:

View Comments

Leave a Comment

Use markdown or basic HTML and be nice.