C# Class OpenQA.Selenium.Screenshot

Represents an image of the page currently loaded in the browser.
Afficher le fichier Open project: asynchrony/Selenium2 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Screenshot() public méthode

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.
Résultat System

ToString() public méthode

Returns a String that represents the current Object.
public ToString ( ) : string
Résultat string