Aquality.Selenium 4.22.0

dotnet add package Aquality.Selenium --version 4.22.0                
NuGet\Install-Package Aquality.Selenium -Version 4.22.0                
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="Aquality.Selenium" Version="4.22.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aquality.Selenium --version 4.22.0                
#r "nuget: Aquality.Selenium, 4.22.0"                
#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 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                

Build Status Quality Gate NuGet

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:

  1. Add the nuget dependency Aquality.Selenium to your project.

  2. Create instance of Browser in your test method:

var browser = AqualityServices.Browser;
  1. 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();
  1. 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");
  1. Call element's methods to perform action with element:
emailTextBox.Type("email@domain.com");
  1. 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.

  1. 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")
  1. 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 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 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 381 10/9/2024
4.21.0 198 9/29/2024
4.20.0 1,155 9/2/2024
4.19.0 670 7/29/2024
4.18.0 136 7/22/2024
4.17.1 279 7/11/2024
4.17.0 1,774 5/3/2024
4.16.1 439 4/18/2024
4.16.0 2,313 2/22/2024
4.15.0 278 2/15/2024
4.14.1 534 1/26/2024
4.14.0 112 1/26/2024
4.13.1 107 1/25/2024
4.13.0 223 1/22/2024
4.12.3 1,354 12/2/2023
4.12.2 2,397 9/6/2023
4.12.0 7,696 3/15/2023
4.11.1 777 2/22/2023
4.11.0 909 1/11/2023
4.9.2 571 1/10/2023
4.9.1 1,951 12/13/2022
4.9.0 3,562 8/19/2022
4.8.0 13,513 3/18/2022
4.7.0 1,623 3/9/2022
4.6.0 483 2/28/2022
4.5.2 444 2/25/2022
4.3.0 464 2/23/2022
4.2.1 446 2/18/2022
4.2.0 648 1/31/2022
4.1.0 554 1/24/2022
4.0.0 529 1/17/2022
3.0.2 435 12/23/2021
3.0.1 7,866 7/21/2021
3.0.0 422 6/10/2021
2.7.4 849 5/24/2021
2.7.3 5,446 1/29/2021
2.7.2 1,312 11/18/2020
2.7.1 412 11/11/2020
2.7.0 716 7/2/2020
2.6.0 535 6/22/2020
2.5.1 453 6/8/2020
2.5.0 584 5/26/2020
2.4.0 584 5/21/2020
2.3.6 531 5/19/2020
2.3.5 472 5/11/2020
2.3.4 498 5/8/2020
2.3.3 556 4/17/2020
2.3.2 477 4/16/2020
2.3.1 569 4/14/2020
2.3.0 466 4/14/2020
2.2.2 539 4/13/2020
2.2.1 500 4/7/2020
2.2.0 509 4/7/2020
2.1.2 33,574 3/4/2020
2.1.1 780 1/20/2020
2.1.0 542 12/26/2019
2.0.3 499 12/19/2019
2.0.2 506 12/17/2019
2.0.1 538 12/5/2019
2.0.0 553 10/24/2019
1.3.0 604 9/24/2019
1.2.2 582 9/4/2019
1.2.1 564 9/4/2019
1.2.0 576 9/2/2019
1.1.0 587 8/30/2019
1.0.4-CI-20190828-195003 425 8/28/2019
1.0.4-CI-20190828-194409 446 8/28/2019
1.0.4-CI-20190828-193746 436 8/28/2019
1.0.4-CI-20190828-193214 414 8/28/2019
1.0.4-CI-20190828-191120 419 8/28/2019
1.0.4-beta 429 8/28/2019
1.0.3-beta 419 8/27/2019
1.0.2 585 8/29/2019
1.0.2-beta 434 8/26/2019
1.0.1 562 8/29/2019
1.0.1-beta 400 8/26/2019
1.0.0 568 8/29/2019
1.0.0-beta 413 8/26/2019