VisionAutomationFramework 2.1.0

dotnet add package VisionAutomationFramework --version 2.1.0
                    
NuGet\Install-Package VisionAutomationFramework -Version 2.1.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="VisionAutomationFramework" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VisionAutomationFramework" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="VisionAutomationFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VisionAutomationFramework --version 2.1.0
                    
#r "nuget: VisionAutomationFramework, 2.1.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.
#:package VisionAutomationFramework@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VisionAutomationFramework&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=VisionAutomationFramework&version=2.1.0
                    
Install as a Cake Tool

Vision Automation Framework (VAF)

VAF is a fluent test automation framework for .NET on top of Selenium WebDriver. Waiting for the page, for elements to be visible and interactable is handled for you, so tests read like the steps they describe.

Requirements

  • .NET Framework 4.7.2 test project
  • NUnit 3 (3.14 or newer 3.x). VAF asserts with NUnit internally; NUnit 4 is not supported in 2.x.
  • Google Chrome (or Firefox, Safari, IE). Browser drivers are downloaded automatically by Selenium Manager on the first run — no ChromeDriver package needed.

Installation

Install-Package VisionAutomationFramework

Quick start

using NUnit.Framework;
using VisionAutomationFramework;
using VisionAutomationFramework.Browsers;
using VisionAutomationFramework.Extensions;

public class Tests
{
    [Test]
    public void OpensExampleDomain()
    {
        var browser = Testing.On<Chrome>();

        try
        {
            browser.LetsNavigateTo("https://example.com/")
                .Should().HaveTitle("Example Domain");
        }
        finally
        {
            browser.Scope.Driver.Quit();
        }
    }
}

The full guide, including a ready-made project file, is at https://www.visionautomationframework.com/quick-start-guide.

What's new in 2.1.0

  • Selenium 4.45 or newer 4.x. Selenium 4.45 renamed its assembly (WebDriver → Selenium.WebDriver); a project with VAF 2.0.x and Selenium 4.45+ does not compile ("IWebDriver is defined in an assembly that is not referenced: WebDriver"). VAF 2.1.0 works with every Selenium 4.x from 4.45, so you can update Selenium on your own without waiting for a VAF release.
  • No ChromeDriver / IEDriver packages. Selenium Manager downloads the driver that matches the installed browser. Behind a proxy that blocks the download, set SE_PROXY or point Selenium to an existing driver.
  • No hardcoded BrowserStack credentials. BrowserStack classes read BrowserStackUsername and BrowserStackPassword from app.config. BrowserStack support is marked obsolete and is removed in 3.0.
  • Dependencies trimmed to what VAF uses: Selenium.WebDriver, Selenium.Support, NUnit 3, Newtonsoft.Json, RestSharp 106.

Features

  • Chrome, Firefox, Safari and Internet Explorer
  • Pages, sections and elements as small classes with one locator each
  • Element-specific actions and assertions (AsButton(), AsTextInputField(), AsLabelText(), …)
  • Built-in waits and loader handling
  • XML test log with an HTML report

Contact

https://www.visionautomationframework.com/contact

License

MIT — see LICENSE.md.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.1.0 0 9/27/2026
2.0.30 371 4/7/2025
2.0.29 297 4/7/2025
2.0.28 235 11/19/2024
2.0.27 249 10/28/2024
2.0.24 237 7/29/2024
2.0.23 280 5/29/2024
2.0.22 266 5/29/2024
2.0.21 275 5/28/2024
2.0.20 292 5/16/2024
2.0.19 541 1/4/2024
2.0.18 675 10/26/2023
2.0.17 610 9/13/2023
2.0.16 585 9/12/2023
2.0.15 764 4/28/2023
2.0.14 769 4/11/2023
2.0.13 949 12/5/2022
2.0.12 1,374 2/10/2022
2.0.11 1,033 12/7/2021
2.0.10 1,024 12/7/2021
Loading failed

2.1.0: works with Selenium 4.45 and every later 4.x (a project with VAF 2.0.x and Selenium 4.45+ does not compile); no ChromeDriver/IEDriver packages — Selenium Manager downloads the driver; no hardcoded BrowserStack credentials (read from app.config; BrowserStack is obsolete and removed in 3.0); dependencies trimmed to Selenium, NUnit 3, Newtonsoft.Json and RestSharp.