![]() |
VOOZH | about |
dotnet add package Aquality.Selenium --version 4.33.0
NuGet\Install-Package Aquality.Selenium -Version 4.33.0
<PackageReference Include="Aquality.Selenium" Version="4.33.0" />
<PackageVersion Include="Aquality.Selenium" Version="4.33.0" />Directory.Packages.props
<PackageReference Include="Aquality.Selenium" />Project file
paket add Aquality.Selenium --version 4.33.0
#r "nuget: Aquality.Selenium, 4.33.0"
#:package Aquality.Selenium@4.33.0
#addin nuget:?package=Aquality.Selenium&version=4.33.0Install as a Cake Addin
#tool nuget:?package=Aquality.Selenium&version=4.33.0Install as a Cake Tool
👁 Build Status
👁 Quality Gate
👁 NuGet
This package is a library designed to simplify your work with Selenium WebDriver.
You've got to use this set of methods, related to most common actions performed with web elements.
Most of performed methods are logged using NLog, so you can easily see a history of performed actions in your log.
We use interfaces where is possible, so you can implement your own version of target interface with no need to rewrite other classes.
To start the project using Aquality.Selenium framework, you can download our template BDD project by this link.
Alternatively, you can follow the steps below:
Add the nuget dependency Aquality.Selenium to your project.
Create instance of Browser in your test method:
var browser = AqualityServices.Browser;
browser.Maximize();
browser.GoTo("https://wikipedia.org");
browser.WaitForPageToLoad();
var emailTextBox = AqualityServices.Get<IElementFactory>().GetTextBox(By.Id("email_create"), "Email");
Or you can inherit a class from Form class and use existing ElementFactory:
private ITextBox EmailTextBox => ElementFactory.GetTextBox(By.Id("email_create"), "Email");
emailTextBox.Type("email@domain.com");
Assert.DoesNotThrowAsync(() => browser.RegisterBasicAuthenticationAndStartMonitoring("domain.com", "username", "password"),
"Should be possible to set basic authentication async");
or intercept network requests/responses:
browser.Network.AddRequestHandler(
new NetworkRequestHandler
{
RequestMatcher = req => true,
ResponseSupplier = req => new HttpResponseData { Body = "my body content", StatusCode = 200 }
});
Assert.DoesNotThrowAsync(() => browser.Network.StartMonitoring());
see more examples at .
const double latitude = 35.8235;
const double longitude = -78.8256;
const double accuracy = 0.97;
Assert.DoesNotThrowAsync(() => DevTools.SetGeoLocationOverride(latitude, longitude, accuracy), "Should be possible to override geoLocation")
It is also possible to set mobile emulation capabilities (for chromium-based browsers) in Resources/settings.json file, as well as to configure other arguments and options there:
{
"browserName": "chrome",
"isRemote": false,
"remoteConnectionUrl": "http://qa-auto-nexus:4444/wd/hub",
"isElementHighlightEnabled": true,
"driverSettings": {
"chrome": {
"capabilities": {
"selenoid:options":
{
"enableVNC": true
},
"mobileEmulation": {
"userAgent": "Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
"deviceMetrics": {
"width": 660,
"height": 1040,
"pixelRatio": 3.0
}
},
"unhandledPromptBehavior": "ignore"
},
"options": {
"download.prompt_for_download": "false",
"download.default_directory": "./downloads"
},
"loggingPreferences": {
"Performance": "All"
},
"excludedArguments": [ "enable-automation" ],
"startArguments": [ "--disable-search-engine-choice-screen" ],
"pageLoadStrategy": "Normal"
},
"safari": {
"options": {
"safari.options.dataDir": "/Users/username/Downloads"
}
}
},
"timeouts": {
"timeoutImplicit": 0,
"timeoutCondition": 30,
"timeoutScript": 10,
"timeoutPageLoad": 60,
"timeoutPollingInterval": 300,
"timeoutCommand": 60
},
"retry": {
"number": 2,
"pollingInterval": 300
},
"logger": {
"language": "en",
"logPageSource": true
},
"elementCache": {
"isEnabled": false
},
"visualization": {
"defaultThreshold": 0.012,
"comparisonWidth": 16,
"comparisonHeight": 16,
"pathToDumps": "../../../Resources/VisualDumps/"
}
}
browser.Quit();
To get more details please look at wiki:
Library's source code is made available under the .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on Aquality.Selenium:
| Package | Downloads |
|---|---|
|
Aquality.Selenium.Images
Support classes to work with Images in Aquality.Selenium, such as ByImage locator |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.33.0 | 627 | 4/17/2026 |
| 4.32.0 | 267 | 3/26/2026 |
| 4.31.0 | 974 | 1/30/2026 |
| 4.30.0 | 258 | 1/21/2026 |
| 4.29.0 | 1,993 | 12/8/2025 |
| 4.28.0 | 798 | 12/2/2025 |
| 4.27.0 | 994 | 10/14/2025 |
| 4.26.0 | 919 | 8/26/2025 |
| 4.25.0 | 1,421 | 7/18/2025 |
| 4.24.0 | 1,352 | 6/1/2025 |
| 4.23.0 | 1,148 | 4/11/2025 |
| 4.22.1 | 9,142 | 11/29/2024 |
| 4.22.0 | 4,144 | 10/9/2024 |
| 4.21.0 | 2,434 | 9/29/2024 |
| 4.20.0 | 7,828 | 9/2/2024 |
| 4.19.0 | 3,317 | 7/29/2024 |
| 4.18.0 | 361 | 7/22/2024 |
| 4.17.1 | 753 | 7/11/2024 |
| 4.17.0 | 2,069 | 5/3/2024 |
| 4.16.1 | 1,038 | 4/18/2024 |