VariableDeclaration ClassWebDriver
A mechanism for taking a variable declaration from a script meant for Selenium Core and converting to something that webdriver can evaluate.
Inheritance Hierarchy

SystemObject
  Selenium.Internal.SeleniumEmulationVariableDeclaration

Namespace: Selenium.Internal.SeleniumEmulation
Assembly: Selenium.WebDriverBackedSelenium (in Selenium.WebDriverBackedSelenium.dll) Version: 3.1.0
Syntax

public class VariableDeclaration : IScriptMutator

The VariableDeclaration type exposes the following members.

Constructors

  NameDescription
Public methodVariableDeclaration
Initializes a new instance of the VariableDeclaration class.
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 methodMutate
Mutate a script so that variable declarations have the correct scope. The original, unmodified script is used to generate a script on the StringBuilder, the "ToString" method of which should be used to get the result. We make use of a StringBuilder rather than a normal String so that we can efficiently chain mutators.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference