Aquality.Selenium
4.22.0
dotnet add package Aquality.Selenium --version 4.22.0
NuGet\Install-Package Aquality.Selenium -Version 4.22.0
<PackageReference Include="Aquality.Selenium" Version="4.22.0" />
paket add Aquality.Selenium --version 4.22.0
#r "nuget: Aquality.Selenium, 4.22.0"
// Install Aquality.Selenium as a Cake Addin #addin nuget:?package=Aquality.Selenium&version=4.22.0 // Install Aquality.Selenium as a Cake Tool #tool nuget:?package=Aquality.Selenium&version=4.22.0
Aquality Selenium for .NET
Overview
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.
Quick start
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;
- Use Browser's methods directly for general actions, such as navigation, window resize, scrolling and alerts handling:
browser.Maximize();
browser.GoTo("https://wikipedia.org");
browser.WaitForPageToLoad();
- Use ElementFactory class's methods to get an instance of each element:
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");
- Call element's methods to perform action with element:
emailTextBox.Type("email@domain.com");
- Handle basic authentication:
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 NetworkHandlingTests.
- Emulate GeoLocation, Device, Touch, Media, UserAgent overrides, Disable script execution and more using DevTools extensions:
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")
- Quit browser at the end:
browser.Quit();
Documentation
To get more details please look at wiki:
License
Library's source code is made available under the Apache 2.0 license.
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
- Aquality.Selenium.Core (>= 3.1.2)
- WebDriverManager (>= 2.17.4)
NuGet packages (1)
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 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.22.0 | 641 | 10/9/2024 |
4.21.0 | 253 | 9/29/2024 |
4.20.0 | 1,395 | 9/2/2024 |
4.19.0 | 787 | 7/29/2024 |
4.18.0 | 139 | 7/22/2024 |
4.17.1 | 281 | 7/11/2024 |
4.17.0 | 1,792 | 5/3/2024 |
4.16.1 | 443 | 4/18/2024 |
4.16.0 | 2,338 | 2/22/2024 |
4.15.0 | 280 | 2/15/2024 |
4.14.1 | 547 | 1/26/2024 |
4.14.0 | 116 | 1/26/2024 |
4.13.1 | 109 | 1/25/2024 |
4.13.0 | 233 | 1/22/2024 |
4.12.3 | 1,413 | 12/2/2023 |
4.12.2 | 2,409 | 9/6/2023 |
4.12.0 | 7,703 | 3/15/2023 |
4.11.1 | 779 | 2/22/2023 |
4.11.0 | 912 | 1/11/2023 |
4.9.2 | 573 | 1/10/2023 |
4.9.1 | 1,953 | 12/13/2022 |
4.9.0 | 3,609 | 8/19/2022 |
4.8.0 | 13,573 | 3/18/2022 |
4.7.0 | 1,627 | 3/9/2022 |
4.6.0 | 484 | 2/28/2022 |
4.5.2 | 448 | 2/25/2022 |
4.3.0 | 466 | 2/23/2022 |
4.2.1 | 448 | 2/18/2022 |
4.2.0 | 649 | 1/31/2022 |
4.1.0 | 562 | 1/24/2022 |
4.0.0 | 533 | 1/17/2022 |
3.0.2 | 437 | 12/23/2021 |
3.0.1 | 7,867 | 7/21/2021 |
3.0.0 | 424 | 6/10/2021 |
2.7.4 | 851 | 5/24/2021 |
2.7.3 | 5,448 | 1/29/2021 |
2.7.2 | 1,314 | 11/18/2020 |
2.7.1 | 414 | 11/11/2020 |
2.7.0 | 717 | 7/2/2020 |
2.6.0 | 537 | 6/22/2020 |
2.5.1 | 455 | 6/8/2020 |
2.5.0 | 585 | 5/26/2020 |
2.4.0 | 585 | 5/21/2020 |
2.3.6 | 532 | 5/19/2020 |
2.3.5 | 473 | 5/11/2020 |
2.3.4 | 499 | 5/8/2020 |
2.3.3 | 558 | 4/17/2020 |
2.3.2 | 479 | 4/16/2020 |
2.3.1 | 573 | 4/14/2020 |
2.3.0 | 468 | 4/14/2020 |
2.2.2 | 541 | 4/13/2020 |
2.2.1 | 504 | 4/7/2020 |
2.2.0 | 511 | 4/7/2020 |
2.1.2 | 33,580 | 3/4/2020 |
2.1.1 | 782 | 1/20/2020 |
2.1.0 | 543 | 12/26/2019 |
2.0.3 | 500 | 12/19/2019 |
2.0.2 | 508 | 12/17/2019 |
2.0.1 | 540 | 12/5/2019 |
2.0.0 | 555 | 10/24/2019 |
1.3.0 | 606 | 9/24/2019 |
1.2.2 | 584 | 9/4/2019 |
1.2.1 | 568 | 9/4/2019 |
1.2.0 | 580 | 9/2/2019 |
1.1.0 | 589 | 8/30/2019 |
1.0.4-CI-20190828-195003 | 426 | 8/28/2019 |
1.0.4-CI-20190828-194409 | 447 | 8/28/2019 |
1.0.4-CI-20190828-193746 | 437 | 8/28/2019 |
1.0.4-CI-20190828-193214 | 415 | 8/28/2019 |
1.0.4-CI-20190828-191120 | 421 | 8/28/2019 |
1.0.4-beta | 430 | 8/28/2019 |
1.0.3-beta | 420 | 8/27/2019 |
1.0.2 | 586 | 8/29/2019 |
1.0.2-beta | 436 | 8/26/2019 |
1.0.1 | 563 | 8/29/2019 |
1.0.1-beta | 404 | 8/26/2019 |
1.0.0 | 569 | 8/29/2019 |
1.0.0-beta | 415 | 8/26/2019 |