Aquality.Selenium
4.22.1
dotnet add package Aquality.Selenium --version 4.22.1
NuGet\Install-Package Aquality.Selenium -Version 4.22.1
<PackageReference Include="Aquality.Selenium" Version="4.22.1" />
paket add Aquality.Selenium --version 4.22.1
#r "nuget: Aquality.Selenium, 4.22.1"
// Install Aquality.Selenium as a Cake Addin #addin nuget:?package=Aquality.Selenium&version=4.22.1 // Install Aquality.Selenium as a Cake Tool #tool nuget:?package=Aquality.Selenium&version=4.22.1
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.3)
- 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.1 | 545 | 11/29/2024 |
4.22.0 | 854 | 10/9/2024 |
4.21.0 | 408 | 9/29/2024 |
4.20.0 | 1,752 | 9/2/2024 |
4.19.0 | 955 | 7/29/2024 |
4.18.0 | 149 | 7/22/2024 |
4.17.1 | 324 | 7/11/2024 |
4.17.0 | 1,806 | 5/3/2024 |
4.16.1 | 449 | 4/18/2024 |
4.16.0 | 2,385 | 2/22/2024 |
4.15.0 | 288 | 2/15/2024 |
4.14.1 | 555 | 1/26/2024 |
4.14.0 | 126 | 1/26/2024 |
4.13.1 | 115 | 1/25/2024 |
4.13.0 | 246 | 1/22/2024 |
4.12.3 | 1,612 | 12/2/2023 |
4.12.2 | 2,437 | 9/6/2023 |
4.12.0 | 7,713 | 3/15/2023 |
4.11.1 | 786 | 2/22/2023 |
4.11.0 | 920 | 1/11/2023 |
4.9.2 | 579 | 1/10/2023 |
4.9.1 | 1,959 | 12/13/2022 |
4.9.0 | 3,688 | 8/19/2022 |
4.8.0 | 13,689 | 3/18/2022 |
4.7.0 | 1,633 | 3/9/2022 |
4.6.0 | 490 | 2/28/2022 |
4.5.2 | 454 | 2/25/2022 |
4.3.0 | 474 | 2/23/2022 |
4.2.1 | 454 | 2/18/2022 |
4.2.0 | 655 | 1/31/2022 |
4.1.0 | 596 | 1/24/2022 |
4.0.0 | 539 | 1/17/2022 |
3.0.2 | 446 | 12/23/2021 |
3.0.1 | 7,873 | 7/21/2021 |
3.0.0 | 430 | 6/10/2021 |
2.7.4 | 857 | 5/24/2021 |
2.7.3 | 5,454 | 1/29/2021 |
2.7.2 | 1,320 | 11/18/2020 |
2.7.1 | 420 | 11/11/2020 |
2.7.0 | 725 | 7/2/2020 |
2.6.0 | 545 | 6/22/2020 |
2.5.1 | 463 | 6/8/2020 |
2.5.0 | 593 | 5/26/2020 |
2.4.0 | 593 | 5/21/2020 |
2.3.6 | 540 | 5/19/2020 |
2.3.5 | 481 | 5/11/2020 |
2.3.4 | 507 | 5/8/2020 |
2.3.3 | 566 | 4/17/2020 |
2.3.2 | 487 | 4/16/2020 |
2.3.1 | 581 | 4/14/2020 |
2.3.0 | 476 | 4/14/2020 |
2.2.2 | 549 | 4/13/2020 |
2.2.1 | 512 | 4/7/2020 |
2.2.0 | 519 | 4/7/2020 |
2.1.2 | 33,589 | 3/4/2020 |
2.1.1 | 790 | 1/20/2020 |
2.1.0 | 551 | 12/26/2019 |
2.0.3 | 508 | 12/19/2019 |
2.0.2 | 516 | 12/17/2019 |
2.0.1 | 548 | 12/5/2019 |
2.0.0 | 563 | 10/24/2019 |
1.3.0 | 614 | 9/24/2019 |
1.2.2 | 592 | 9/4/2019 |
1.2.1 | 576 | 9/4/2019 |
1.2.0 | 588 | 9/2/2019 |
1.1.0 | 598 | 8/30/2019 |
1.0.4-CI-20190828-195003 | 428 | 8/28/2019 |
1.0.4-CI-20190828-194409 | 449 | 8/28/2019 |
1.0.4-CI-20190828-193746 | 439 | 8/28/2019 |
1.0.4-CI-20190828-193214 | 417 | 8/28/2019 |
1.0.4-CI-20190828-191120 | 424 | 8/28/2019 |
1.0.4-beta | 434 | 8/28/2019 |
1.0.3-beta | 424 | 8/27/2019 |
1.0.2 | 594 | 8/29/2019 |
1.0.2-beta | 440 | 8/26/2019 |
1.0.1 | 571 | 8/29/2019 |
1.0.1-beta | 408 | 8/26/2019 |
1.0.0 | 577 | 8/29/2019 |
1.0.0-beta | 419 | 8/26/2019 |