Automation.Web.Core 2.0.0-preview.156

This is a prerelease version of Automation.Web.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Automation.Web.Core --version 2.0.0-preview.156
NuGet\Install-Package Automation.Web.Core -Version 2.0.0-preview.156
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="Automation.Web.Core" Version="2.0.0-preview.156" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Automation.Web.Core --version 2.0.0-preview.156
#r "nuget: Automation.Web.Core, 2.0.0-preview.156"
#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 Automation.Web.Core as a Cake Addin
#addin nuget:?package=Automation.Web.Core&version=2.0.0-preview.156&prerelease

// Install Automation.Web.Core as a Cake Tool
#tool nuget:?package=Automation.Web.Core&version=2.0.0-preview.156&prerelease

Introduction

This is the web automation test library that can help use early to create an automation web test on many browsers and many OS without setup the corresponding webdriver such as ChromeDriver, FirefoxDriver or IEDriver. This library is still developing, so please keep looking. Thanks!

Getting Started

  1. Create your test project.
  2. Install any unit test framework that you like. We will use NUnit in this tutorial.
  3. Installation the nuget package: Automation.Web.Core
  4. Create a browsers.json file as below in your test project and set it as a Content in the Build action and Copy to Output Directory
{
  "Browsers": [
    {
      "Id": "Android",
      "Browser": "Chrome",
      "Platform": "Android",
      "PlatformVersion": "11.0",
      "DeviceName": "Pixel5",
      "AutomationName": "UIAutomator2",
      "ServerUrl": "http://127.0.0.1:4723",
      "IsHeadless": false,
      "LogLevel": "Debug",
      "Arguments": [],
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 3000
    },
    {
      "Id": "Chrome",
      "Browser": "Chrome",
      "Version": "Latest",
      "IsHeadless": false,
      "LogLevel": "Debug",
      "Arguments": [],
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 30
    },
    {
      "Id": "Firefox",
      "Browser": "Firefox",
      "Version": "Latest",
      "IsHeadless": false,
      "LogLevel": "Debug",
      "Arguments": [],
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 30
    },
    {
      "Id": "InternetExplorer",
      "Browser": "InternetExplorer",
      "Platform": "X32",
      "LogLevel": "Debug",
      "Arguments": [],
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 30
    },
    {
      "Id": "Edge",
      "Browser": "Edge",
      "Version": "Latest",
      "LogLevel": "Debug",
      "Arguments": [],
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 30
    },
    {
      "Id": "Safari",
      "Browser": "Safari",
      "LogLevel": "Debug",
      "ImplicitTimeoutInSecond": 30,
      "DefaultWaitTimeInSecond": 30
    }
  ]
}

This configuration is based on your browser version & your expection browser behaviours.

  1. Add your test code
[TestFixture(BrowserType.Chrome)]
    [TestFixture(BrowserType.Firefox)]
    [TestFixture(BrowserType.Edge)]
    [TestFixture(BrowserType.InternetExplorer)]
    [TestFixture(BrowserType.Opera)]
    [TestFixture(BrowserType.Safari)]
    public class BrowserTests
    {
        private IBrowser browser;
        private readonly BrowserType browserType;

        public BrowserTests(BrowserType browserType)
        {
            this.browserType = browserType;
        }

        [SetUp]
        public void SetUp()
        {
            browser = BrowserFactory.CreateBrowser(browserType);
        }

        [Test]
        public void Test()
        {
            browser.Navigation.GoToUrl("https://www.google.com");
            Assert.True(browser.Title.Contains("Google"));
        }

        [TearDown]
        public void TearDown()
        {
            browser.Quit();
        }
    }
  1. Run your test cases and see the magic^^

  2. Browser configuration details 7.1 Desktop web testing

  • Currently, we support Chrome, Firefox, Safari, Edge, InternetExplorer.

7.2 Mobile web testing

  • It's required to have an Appium server to run the Mobile web testing. So, please don't forget to set the ServerUrl to the Appium server such as http://127.0.0.1:4723.

Contribute

Will update later.

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 (2)

Showing the top 2 NuGet packages that depend on Automation.Web.Core:

Package Downloads
Automation.Web.NUnit

Package Description

Automation.Web.Core.Forms

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.11.0 76 4/29/2024
2.11.0-preview.290 184 12/13/2023
2.11.0-preview.289 62 12/13/2023
2.11.0-preview.288 63 12/13/2023
2.10.0 219 12/5/2023
2.10.0-preview.284 110 11/21/2023
2.10.0-preview.283 71 11/21/2023
2.9.0-preview.281 73 11/17/2023
2.9.0-preview.280 60 11/16/2023
2.9.0-preview.277 57 11/14/2023
2.9.0-preview.275 77 11/14/2023
2.8.6 129 11/6/2023
2.8.6-preview.272 65 11/6/2023
2.8.6-preview.271 54 11/6/2023
2.8.5 69 11/6/2023
2.8.5-preview.269 60 11/6/2023
2.8.5-preview.268 63 11/6/2023
2.8.3-preview.263 76 11/2/2023
2.8.1 182 11/2/2023
2.8.1-preview.258 72 11/2/2023
2.8.1-preview.253 88 10/31/2023
2.8.0-preview.252 77 10/23/2023
2.8.0-preview.251 57 10/23/2023
2.7.1-preview.250 63 10/23/2023
2.7.0 543 8/21/2023
2.6.1 623 8/1/2023
2.6.1-preview.246 79 7/31/2023
2.6.1-preview.245 78 7/31/2023
2.5.1 650 6/23/2023
2.5.1-preview.240 63 6/22/2023
2.5.0-preview.238 83 6/22/2023
2.5.0-preview.237 65 6/22/2023
2.5.0-preview.236 68 6/22/2023
2.5.0-preview.235 85 6/22/2023
2.4.0 737 6/21/2023
2.4.0-preview.228 65 6/21/2023
2.4.0-preview.226 66 6/21/2023
2.3.3-preview.225 67 6/20/2023
2.3.3-preview.223 64 6/20/2023
2.3.2-preview.222 62 6/19/2023
2.3.1 680 6/19/2023
2.3.1-preview.215 63 6/19/2023
2.3.0 622 6/19/2023
2.2.0-preview.211 74 6/7/2023
2.1.0-preview.186 381 1/6/2023
2.1.0-preview.184 90 12/27/2022
2.1.0-preview.183 92 12/26/2022
2.1.0-preview.182 96 12/26/2022
2.1.0-preview.181 83 12/22/2022
2.1.0-preview.180 85 12/22/2022
2.0.1 780 12/21/2022
2.0.0 956 12/21/2022
2.0.0-preview.173 88 12/21/2022
2.0.0-preview.171 82 12/21/2022
2.0.0-preview.169 82 12/21/2022
2.0.0-preview.165 82 12/19/2022
2.0.0-preview.161 83 12/14/2022
2.0.0-preview.156 80 12/14/2022
1.0.4-preview.131 275 5/27/2020
1.0.3 1,264 5/26/2020
1.0.3-preview.120 231 5/26/2020
1.0.2 1,100 5/25/2020
1.0.2-preview.116 284 5/25/2020
1.0.2-preview.114 290 5/25/2020
1.0.2-preview.112 229 5/22/2020
1.0.1 1,027 5/21/2020
1.0.0 1,272 5/18/2020