Screenshot ClassWebDriver
Represents an image of the page currently loaded in the browser.
Inheritance Hierarchy

SystemObject
  OpenQA.SeleniumScreenshot

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

[SerializableAttribute]
public class Screenshot

The Screenshot type exposes the following members.

Constructors

  NameDescription
Public methodScreenshot
Initializes a new instance of the Screenshot class.
Top
Properties

  NameDescription
Public propertyAsBase64EncodedString
Gets the value of the screenshot image as a Base64-encoded string.
Public propertyAsByteArray
Gets the value of the screenshot image as an array of bytes.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSaveAsFile(String, ScreenshotImageFormat)
Saves the screenshot to a file, overwriting the file if it already exists.
Public methodSaveAsFile(String, ImageFormat) Obsolete.
Saves the screenshot to a file, overwriting the file if it already exists.
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Top
See Also

Reference