|  | TakeScreenShotTakeScreenShotOfElement(Int32, Int32, IWebElement, String, String) Method | 
Framework to automate tests using Selenium WebDriver
            Takes screen shot of specific element within iframe.
            
Namespace: Ocaramba.HelpersAssembly: OcarambaLite (in OcarambaLite.dll) Version: 4.2.4
 Syntax
Syntaxpublic static string TakeScreenShotOfElement(
	int iframeLocationX,
	int iframeLocationY,
	IWebElement element,
	string folder,
	string screenshotName
)
Parameters
- iframeLocationX  Int32
- X coordinate of iframe.
- iframeLocationY  Int32
- Y coordinate of iframe.
- element  IWebElement
- Element to take screenshot.
- folder  String
- Folder to save screenshot.
- screenshotName  String
- Name of screenshot.
Return Value
StringFull path to taken screenshot.
 Example
ExampleHow to use it: 
var iFrame = this.Driver.GetElement(this.iframe);
int x = iFrame.Location.X;
int y = iFrame.Location.Y;
this.Driver.SwitchTo().Frame(0);
var el = this.Driver.GetElement(this.elelemtInIFrame);
var fullPath = TakeScreenShot.TakeScreenShotOfElement(x, y, el, Directory.GetCurrentDirectory() + BaseConfiguration.ScreenShotFolder, "MenuOutSideTheIFrame");
 See Also
See Also