iframe inline style code example

Example 1: html iframe tag

<iframe src="http://kidcreatorsteam.com" height="90px" width="40px"></iframe>
<!--I made an iframe! Yay! -->

Example 2: what is iframe html

<div id="website_Within_Same_Webpage">
	<iframe src="https://www.codegrepper.com" 
        	height=200px width=100%>
	</iframe>
</div>

Example 3: iframe

- Iframe is html inside another html
	- We need to switch selenium focus to iframe
	  either by using INDEX, NAME-ID, or 	
	  as a webelement same way as other webelements.
		
  After switching to Iframe we need to switch back to
  the main frame to able to continue in the main frame.
  
  
  Syntax=
  
  -driver.switchTo().defaultContent();
  -driver.switchTo().parentFrame();

Tags:

Html Example