Selenium.WebDriver.Linq
1.0.0
dotnet add package Selenium.WebDriver.Linq --version 1.0.0
NuGet\Install-Package Selenium.WebDriver.Linq -Version 1.0.0
<PackageReference Include="Selenium.WebDriver.Linq" Version="1.0.0" />
paket add Selenium.WebDriver.Linq --version 1.0.0
#r "nuget: Selenium.WebDriver.Linq, 1.0.0"
// Install Selenium.WebDriver.Linq as a Cake Addin #addin nuget:?package=Selenium.WebDriver.Linq&version=1.0.0 // Install Selenium.WebDriver.Linq as a Cake Tool #tool nuget:?package=Selenium.WebDriver.Linq&version=1.0.0
Selenium.WebDriver.Linq
The LinqWebElement class extends the WebElement class and provides additional functionalities for interacting with web elements using LINQ expressions. It encapsulates an IWebElement object and enhances it with convenient methods and properties.
- webElement: The underlying IWebElement object to encapsulate.
- parentDriver: The parent driver associated with the web element.
- id: The unique identifier of the web element.
Properties
Id
Gets or sets the ID attribute of the web element.
Class
Gets or sets the class attribute of the web element.
Style
Gets or sets the inline style attribute of the web element.
Parent
Gets the parent web element of the current web element as a LinqWebElement object.
Children
Gets the child web elements of the current web element as an enumerable collection of LinqWebElement objects.
Siblings
Gets the sibling web elements of the current web element as an enumerable collection of LinqWebElement objects.
Attributes
The Attributes property provides a dictionary of attributes and their values for the web element. The dictionary contains the attribute names as keys and their corresponding values as values.
Methods
Delete()
Deletes the current web element.
SetAttribute(string attribute, string value)
Sets the value of the specified attribute for the web element.
- attribute: The name of the attribute.
- value: The value to set for the attribute.
HasAttribute(string attribute)
Checks if the web element has the specified attribute.
- attribute: The name of the attribute to check.
SetText(string text)
Sets the text content of the web element.
- text: The text to set.
AppendHtml(string html)
Appends the specified HTML content to the web element.
- html: The HTML content to append.
Product | Versions 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. |
-
.NETStandard 2.0
- HtmlAgilityPack (>= 1.11.46)
- Selenium.WebDriver (>= 4.9.1)
- Selenium.WebDriver.SimpleExtensions (>= 1.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 236 | 5/23/2023 |