Automation.Web.Core
1.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Automation.Web.Core --version 1.0.2
NuGet\Install-Package Automation.Web.Core -Version 1.0.2
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="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Automation.Web.Core --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Automation.Web.Core, 1.0.2"
#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=1.0.2 // Install Automation.Web.Core as a Cake Tool #tool nuget:?package=Automation.Web.Core&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Create your test project.
- Install any unit test framework that you like. We will use NUnit in this tutorial.
- Installation the nuget package:
Automation.Web.Core
- Create a
browsers.json
file as below in your test project and set it as aContent
in theBuild action
andCopy to Output Directory
{
"Browsers": [
{
"Browser": "Chrome",
"Version": "Latest",
"IsHeadless": false,
"LogLevel": "Debug",
"Arguments": [],
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
},
{
"Browser": "Firefox",
"Version": "Latest",
"IsHeadless": false,
"LogLevel": "Debug",
"Arguments": [],
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
},
{
"Browser": "InternetExplorer",
"Platform": "X32",
"LogLevel": "Debug",
"Arguments": [],
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
},
{
"Browser": "Edge",
"Version": "83.0.478.37",
"LogLevel": "Debug",
"Arguments": [],
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
},
{
"Browser": "Opera",
"LogLevel": "Debug",
"Arguments": [],
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
},
{
"Browser": "Safari",
"LogLevel": "Debug",
"ImplicitTimeoutInSecond": 30,
"DefaultWaitTimeInSecond": 30
}
]
}
This configuration is based on your browser version & your expection browser behaviours.
- 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();
}
}
- Run your test cases and see the magic^^
Contribute
Will update later.
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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.
-
.NETStandard 2.0
- DotNetSeleniumExtras.WaitHelpers (>= 3.11.0)
- Magick.NET-Q16-AnyCPU (>= 7.17.0.1)
- Microsoft.Extensions.Configuration (>= 3.1.4)
- Microsoft.Extensions.Configuration.Binder (>= 3.1.4)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 3.1.4)
- Microsoft.Extensions.Configuration.FileExtensions (>= 3.1.4)
- Microsoft.Extensions.Configuration.Json (>= 3.1.4)
- Selenium.Support (>= 3.141.0)
- Selenium.WebDriver (>= 3.141.0)
- System.Drawing.Common (>= 4.7.0)
- WebDriverManager (>= 2.9.1)
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.14.0-preview.301 | 48 | 12/24/2024 |
2.14.0-preview.300 | 53 | 12/11/2024 |
2.14.0-preview.299 | 55 | 11/12/2024 |
2.14.0-preview.298 | 58 | 11/12/2024 |
2.13.0 | 80 | 11/5/2024 |
2.12.0-preview.296 | 54 | 10/30/2024 |
2.12.0-preview.295 | 54 | 10/25/2024 |
2.11.2 | 73 | 10/21/2024 |
2.11.1 | 118 | 9/9/2024 |
2.11.0 | 102 | 4/29/2024 |
2.11.0-preview.290 | 207 | 12/13/2023 |
2.11.0-preview.289 | 91 | 12/13/2023 |
2.11.0-preview.288 | 80 | 12/13/2023 |
2.10.0 | 240 | 12/5/2023 |
2.10.0-preview.284 | 127 | 11/21/2023 |
2.10.0-preview.283 | 90 | 11/21/2023 |
2.9.0-preview.281 | 90 | 11/17/2023 |
2.9.0-preview.280 | 77 | 11/16/2023 |
2.9.0-preview.277 | 77 | 11/14/2023 |
2.9.0-preview.275 | 125 | 11/14/2023 |
2.8.6 | 155 | 11/6/2023 |
2.8.6-preview.272 | 87 | 11/6/2023 |
2.8.6-preview.271 | 81 | 11/6/2023 |
2.8.5 | 91 | 11/6/2023 |
2.8.5-preview.269 | 78 | 11/6/2023 |
2.8.5-preview.268 | 88 | 11/6/2023 |
2.8.3-preview.263 | 98 | 11/2/2023 |
2.8.1 | 260 | 11/2/2023 |
2.8.1-preview.258 | 100 | 11/2/2023 |
2.8.1-preview.253 | 110 | 10/31/2023 |
2.8.0-preview.252 | 104 | 10/23/2023 |
2.8.0-preview.251 | 85 | 10/23/2023 |
2.7.1-preview.250 | 82 | 10/23/2023 |
2.7.0 | 576 | 8/21/2023 |
2.6.1 | 651 | 8/1/2023 |
2.6.1-preview.246 | 96 | 7/31/2023 |
2.6.1-preview.245 | 95 | 7/31/2023 |
2.5.1 | 682 | 6/23/2023 |
2.5.1-preview.240 | 81 | 6/22/2023 |
2.5.0-preview.238 | 100 | 6/22/2023 |
2.5.0-preview.237 | 92 | 6/22/2023 |
2.5.0-preview.236 | 86 | 6/22/2023 |
2.5.0-preview.235 | 108 | 6/22/2023 |
2.4.0 | 809 | 6/21/2023 |
2.4.0-preview.228 | 81 | 6/21/2023 |
2.4.0-preview.226 | 86 | 6/21/2023 |
2.3.3-preview.225 | 86 | 6/20/2023 |
2.3.3-preview.223 | 82 | 6/20/2023 |
2.3.2-preview.222 | 80 | 6/19/2023 |
2.3.1 | 734 | 6/19/2023 |
2.3.1-preview.215 | 81 | 6/19/2023 |
2.3.0 | 656 | 6/19/2023 |
2.2.0-preview.211 | 96 | 6/7/2023 |
2.1.0-preview.186 | 413 | 1/6/2023 |
2.1.0-preview.184 | 107 | 12/27/2022 |
2.1.0-preview.183 | 109 | 12/26/2022 |
2.1.0-preview.182 | 119 | 12/26/2022 |
2.1.0-preview.181 | 100 | 12/22/2022 |
2.1.0-preview.180 | 107 | 12/22/2022 |
2.0.1 | 812 | 12/21/2022 |
2.0.0 | 1,011 | 12/21/2022 |
2.0.0-preview.173 | 104 | 12/21/2022 |
2.0.0-preview.171 | 103 | 12/21/2022 |
2.0.0-preview.169 | 99 | 12/21/2022 |
2.0.0-preview.165 | 99 | 12/19/2022 |
2.0.0-preview.161 | 106 | 12/14/2022 |
2.0.0-preview.156 | 103 | 12/14/2022 |
1.0.4-preview.131 | 291 | 5/27/2020 |
1.0.3 | 1,306 | 5/26/2020 |
1.0.3-preview.120 | 247 | 5/26/2020 |
1.0.2 | 1,135 | 5/25/2020 |
1.0.2-preview.116 | 306 | 5/25/2020 |
1.0.2-preview.114 | 311 | 5/25/2020 |
1.0.2-preview.112 | 245 | 5/22/2020 |
1.0.1 | 1,065 | 5/21/2020 |
1.0.0 | 1,313 | 5/18/2020 |