Click or drag to resize

TakeScreenShotCutOutScreenShot Method

Framework to automate tests using Selenium WebDriver
Cut out the screen shot by giving locationX, locationY, elementWidth, elementHeight.

Namespace: Ocaramba.Helpers
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax
C#
public static string CutOutScreenShot(
	string folder,
	string newScreenShotName,
	int locationX,
	int locationY,
	int elementWidth,
	int elementHeight,
	string fullPathToScreenShotToCutOut
)
Request Example

Parameters

folder  String
Folder to save new screenshot.
newScreenShotName  String
Name of new screenshot.
locationX  Int32
The x-coordinate of the upper-left corner of the new rectangle.
locationY  Int32
The y-coordinate of the upper-left corner of the new rectangle.
elementWidth  Int32
The width of the new rectangle.
elementHeight  Int32
The height of the new rectangle.
fullPathToScreenShotToCutOut  String
Full path to the screenshot to be cut out.

Return Value

String
Full path of cutted out screenshot.
Example
How to use it:
C#
var fullPath = CutOutScreenShot(folder, screenshotName, locationX, locationY, elementWidth, elementHeight, fullPathToScreenShotToCutOut);
See Also