IWebDriverExtensions Class

Contains custom extension methods to use with IWebDriver type.

Definition

Namespace: DevCase.ThirdParty.Selenium.Extensions.IWebDriverExtensions
Assembly: DevCase.net48.ThirdParty.Selenium (in DevCase.net48.ThirdParty.Selenium.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[HideModuleNameAttribute]
public sealed class IWebDriverExtensions
Inheritance
Object    IWebDriverExtensions

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

Selenium.Support by Selenium Committers

Selenium.WebDriver by Selenium Committers

Methods

CloseAlert Instructs to close the current alert modal dialog window present in the current IWebDriver.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
FindElementsByPartialText(IWebDriver, String, StringComparison) Finds a list of elements that match the partial text supplied.
FindElementsByPartialText(IWebDriver, By, String, StringComparison) Finds a list of elements using the given mechanism that match the partial text supplied.
FindElementsByRegEx(IWebDriver, Regex) Finds a list of elements that match the text supplied using RegEx.
FindElementsByRegEx(IWebDriver, By, Regex) Finds a list of elements using the given mechanism that match the text supplied using RegEx.
FindElementsByText(IWebDriver, String, StringComparison) Finds a list of elements that match the text supplied.
FindElementsByText(IWebDriver, By, String, StringComparison) Finds a list of elements using the given mechanism that match the text supplied.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetPlainText Gets all the plain text in the current page.
GetType Gets the Type of the current instance.
(Inherited from Object)
IsAlertPresent Determines whether an alert modal dialog window is present in the current IWebDriver.
IsElementPresent Determine whether an element is present in the current IWebDriver.
RestoreCookies(IWebDriver, String) Restores a saved cookie container for the current browser session.
RestoreCookies(IWebDriver, String, String) Restores a saved cookie container for the specified domain in the browser session.
RestoreCookies(IWebDriver, String, Uri) Restores a saved cookie container for the specified domain in the browser session.
RestoreCookiesOfCurrentDomain Restores a saved cookie container for the current domain in the browser session.
SaveCookies(IWebDriver, String) Saves the current session cookies to disk.
SaveCookies(IWebDriver, String, String) Saves the current session cookies for the specified domain to disk.
SaveCookies(IWebDriver, String, Uri) Saves the current session cookies for the specified domain to disk.
SaveCookiesOfCurrentDomain Saves the current session cookies for the current domain to disk.
ToString Returns a string that represents the current object.
(Inherited from Object)
WaitForPageToLoad Waits for the current page to load.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also