C# Класс OpenQA.Selenium.Screenshot

Represents an image of the page currently loaded in the browser.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

SaveAsFile() публичный метод

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.
Результат void

Screenshot() публичный метод

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.
Результат System

ToString() публичный метод

Returns a String that represents the current Object.
public ToString ( ) : string
Результат string