1<!DOCTYPE html>
2<html>
3
4<body>
5 <iframe src="https://comercioiturama.blogspot.com/" width="800" height="600"></iframe>
6</body>
7
8</html>
1<iframe src="http://kidcreatorsteam.com" height="90px" width="40px"></iframe>
2<!--I made an iframe! Yay! -->
1<iframe width="560" height="315" src="https://www.youtube.com/embed/owsfdh4gxyc" frameborder="0" allowfullscreen></iframe>
1<!-- This tag is used for rendering one page in another.
2 It by default has a border-->
3<iframe src="https://example.com/">This will show if the url does not load</iframe>
1<iframe id="inlineFrameExample"
2 title="Inline Frame Example"
3 width="300"
4 height="200"
5 src="https://www.openstreetmap.org/export/embed.html?bbox=-0.004017949104309083%2C51.47612752641776%2C0.00030577182769775396%2C51.478569861898606&layer=mapnik">
6</iframe>
7
1 - Iframe is html inside another html
2 - We need to switch selenium focus to iframe
3 either by using INDEX, NAME-ID, or
4 as a webelement same way as other webelements.
5
6 After switching to Iframe we need to switch back to
7 the main frame to able to continue in the main frame.
8
9
10 Syntax=
11
12 -driver.switchTo().defaultContent();
13 -driver.switchTo().parentFrame();