C# Class OpenQA.Selenium.Screenshot

Represents an image of the page currently loaded in the browser.
显示文件 Open project: asynchrony/Selenium2 Class Usage Examples

Public Methods

Method Description
SaveAsFile ( string fileName, ImageFormat format ) : void

Saves the screenshot to a file, overwriting the file if it already exists.

Screenshot ( string base64EncodedScreenshot ) : System

Initializes a new instance of the Screenshot class.

ToString ( ) : string

Returns a String that represents the current Object.

Method Details

SaveAsFile() public method

Saves the screenshot to a file, overwriting the file if it already exists.
public SaveAsFile ( string fileName, ImageFormat format ) : void
fileName string The full path and file name to save the screenshot to.
format System.Drawing.Imaging.ImageFormat A object indicating the format /// to save the image to.
return void

Screenshot() public method

Initializes a new instance of the Screenshot class.
public Screenshot ( string base64EncodedScreenshot ) : System
base64EncodedScreenshot string The image of the page as a Base64-encoded string.
return System

ToString() public method

Returns a String that represents the current Object.
public ToString ( ) : string
return string