![]() |
VOOZH | about |
dotnet add package Automation.Web.Core --version 2.13.0
NuGet\Install-Package Automation.Web.Core -Version 2.13.0
<PackageReference Include="Automation.Web.Core" Version="2.13.0" />
<PackageVersion Include="Automation.Web.Core" Version="2.13.0" />Directory.Packages.props
<PackageReference Include="Automation.Web.Core" />Project file
paket add Automation.Web.Core --version 2.13.0
#r "nuget: Automation.Web.Core, 2.13.0"
#:package Automation.Web.Core@2.13.0
#addin nuget:?package=Automation.Web.Core&version=2.13.0Install as a Cake Addin
#tool nuget:?package=Automation.Web.Core&version=2.13.0Install as a Cake Tool
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!
v1.x.x → v2.0.x
v2.x.x → v2.3.0
DefaultBrowser into the browsers.jsonRemoteServer instead of ServerUrlv2.3.x → v2.4.x
ForceUsingDefaultBrowser into browsers.json to force using DefaultBrowser in-case don't want to use ExecutableBrowsers, then only execute DefaultBrowser instead.v2.4.x → v2.5.x
DownloadDirectory for IBrowserv2.5.x → v2.6.x
ChromeDriverExecutable for appium chrome driverappium.webdriver packageClearText for IBrowserv2.6.x → v2.7.x
v2.7.x → v2.8.x
v2.8.x → v2.9.x
v2.9.x → v2.10.x
Automation.Web.Corebrowsers.json file as below in your test project and set it as a Content in the Build action and Copy to Output Directory{
"ExecutableBrowsers": [ "Chrome", "Firefox" ],
"DefaultBrowser": "Chrome",
"ForceUsingDefaultBrowser": false,
"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.
[TestFixtureSource(typeof(ExecutableBrowserSourceConfig))]
public class BrowserTests
{
private IBrowser browser;
private readonly string browserId;
public BrowserTests(string browserId)
{
this.browserId = browserId;
}
[SetUp]
public void SetUp()
{
browser = BrowserFactory.CreateBrowser(browserId);
//Start screen recording for evidence
//browser.StartScreenRecording();
}
[Test]
public void Test()
{
browser.Navigation.GoToUrl("https://www.google.com");
Assert.True(browser.Title.Contains("Google"));
}
[TearDown]
public virtual void TearDown()
{
//Take screenshot
string filePath = browser.TakeAndSaveScreenshot();
TestContext.AddTestAttachment(filePath);
//Stop video recording
//browser.StopScreenRecording();
//Dispose the browser
browser.Dispose();
}
}
*Note:
- The StartScreenRecording & StopScreenRecording functions only work when run web test on mobile device.
- To let they work also in Windows OS, please add nuget package Automation.Web.Core.Forms https://www.nuget.org/packages/Automation.Web.Core.Forms/
Run your test cases and see the magic^^
Browser configuration details 7.1 Desktop web testing
7.2 Mobile web testing
ServerUrl to the Appium server such as http://127.0.0.1:4723.There is another nuget package Automation.Web.NUnit that applying the Automation.Web.Core with the NUnit framework. It also supports to integrate with Specflow for BDD.
So, let try with it https://www.nuget.org/packages/Automation.Web.NUnit
DefaultBrowser: default browserIdExecutableBrowsers: a list of browserId which will be executed parallelForceUsingDefaultBrowser: force to use DefaultBrowser setting even ExecutableBrowsers is being configured.Will update later.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.14.0-preview.301 | 142 | 12/24/2024 |
| 2.14.0-preview.300 | 125 | 12/11/2024 |
| 2.14.0-preview.299 | 157 | 11/12/2024 |
| 2.14.0-preview.298 | 162 | 11/12/2024 |
| 2.13.0 | 257 | 11/5/2024 |
| 2.12.0-preview.296 | 129 | 10/30/2024 |
| 2.12.0-preview.295 | 127 | 10/25/2024 |
| 2.11.2 | 191 | 10/21/2024 |
| 2.11.1 | 233 | 9/9/2024 |
| 2.11.0 | 215 | 4/29/2024 |
| 2.11.0-preview.290 | 290 | 12/13/2023 |
| 2.11.0-preview.289 | 181 | 12/13/2023 |
| 2.11.0-preview.288 | 193 | 12/13/2023 |
| 2.10.0 | 338 | 12/5/2023 |
| 2.10.0-preview.284 | 204 | 11/21/2023 |
| 2.10.0-preview.283 | 196 | 11/21/2023 |
| 2.9.0-preview.281 | 155 | 11/17/2023 |
| 2.9.0-preview.280 | 148 | 11/16/2023 |
| 2.9.0-preview.277 | 162 | 11/14/2023 |
| 2.9.0-preview.275 | 205 | 11/14/2023 |