Selenium.WebDriver.SimpleExtensions 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Selenium.WebDriver.SimpleExtensions --version 1.0.2                
NuGet\Install-Package Selenium.WebDriver.SimpleExtensions -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Selenium.WebDriver.SimpleExtensions" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Selenium.WebDriver.SimpleExtensions --version 1.0.2                
#r "nuget: Selenium.WebDriver.SimpleExtensions, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Selenium.WebDriver.SimpleExtensions as a Cake Addin
#addin nuget:?package=Selenium.WebDriver.SimpleExtensions&version=1.0.2

// Install Selenium.WebDriver.SimpleExtensions as a Cake Tool
#tool nuget:?package=Selenium.WebDriver.SimpleExtensions&version=1.0.2                

Selenium.WebDriver.SimpleExtensions

Nuget

A robust and versatile Selenium WebDriver extension library to simplify web element and browser interactions.

OverviewOverview

This library consists of two primary sets of extension methods: WebElementExtensions and WebDriverExtensions. These methods enhance the usability of Selenium WebDriver by extending the IWebElement and IWebDriver interfaces with additional functionalities.

WebElementExtensions

This class offers a series of helper methods to easily traverse the DOM:

GetParent

Returns the parent of the current element.

GetNextSibling

Returns the next sibling of the current element.

GetPreviousSibling

Returns the previous sibling of the current element.

GetSiblingByIndex

Returns a sibling of the current element at a specified index.

GetFirstChild

Returns the first child of the current element.

GetLastChild

Returns the last child of the current element.

GetChildByIndex

Returns a child of the current element at a specified index.

GetChildByText

Returns a child of the current element that matches a specified text.

GetChildThatContainsText

Returns a child of the current element that contains a specified text.

GetParent(int skip)

Returns the parent of the current element, skipping a specified number of levels.

Please note that the GetParent(int skip) method throws an ArgumentException if the skip parameter is less than 0.

WebDriverExtensions

This class includes methods to execute JavaScript scripts directly in the browser:

ExecuteJavaScript:

Executes a JavaScript script in the browser and returns the result casted to a specified type.

ExecuteJavaScriptAndDeserialize:

Executes a JavaScript script in the browser, serializes the result into a JSON string, and then deserializes that string into an object of a specified type.

Getting Started

To use these extensions, first add a reference to this library in your project. Then, in your code, use the methods on instances of IWebElement and IWebDriver as required.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contact

Visit https://scrapeweb.site

Or join us on Discord: https://discord.gg/f3EfBQamnT

Disclaimer

The extensions provided by this library are subject to the reliability of the Selenium WebDriver and the browser being automated. Please ensure the elements are available and interactable before using these extension methods to avoid any unexpected exceptions or behavior.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Selenium.WebDriver.SimpleExtensions:

Package Downloads
Selenium.WebDriver.Linq

Provides additional functionalities for interacting with web elements using LINQ expressions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 984 5/23/2023
1.0.2 152 5/23/2023
1.0.1 153 5/23/2023
1.0.0 159 5/21/2023