Selenium.Spotfire
1.0.0
See the version list below for details.
dotnet add package Selenium.Spotfire --version 1.0.0
NuGet\Install-Package Selenium.Spotfire -Version 1.0.0
<PackageReference Include="Selenium.Spotfire" Version="1.0.0" />
paket add Selenium.Spotfire --version 1.0.0
#r "nuget: Selenium.Spotfire, 1.0.0"
// Install Selenium.Spotfire as a Cake Addin #addin nuget:?package=Selenium.Spotfire&version=1.0.0 // Install Selenium.Spotfire as a Cake Tool #tool nuget:?package=Selenium.Spotfire&version=1.0.0
Spotfire Selenium Helpers
The goal of this project is to make automating Spotfire through Web Player using Selenium and .NET easier. There are several use cases, with different parts of the project focusing on each:
- Automating tasks that use Spotfire Web Player - e.g. opening an analytic and exporting data.
- Running tests against Spotfire analytics - e.g. to automate a test for a specific analytic template.
- Comparing the output of different Spotfire environments - e.g. to automate testing of a new version of Spotfire.
Three NuGet packages are available:
- Spotfire.Selenium - Classes to automate Spotfire through Selenium and Chrome.
- Spotfire.Selenium.TestHelpers - Helpers for all types of tests
- Spotfire.Selenium.MSTest - Support for the creation of MSTest based unit tests.
Note, this project does not contain any Spotfire software, it can only be used to automate an existing Spotfire installation.
Installation
Installed through NuGet.org.
For example, at the package manager console on Visual Studio, enter following command to install the automation package:
PM> Install-Package Selenium.Spotfire
For example, at the package manager console on Visual Studio, enter following command to install the test helper package:
PM> Install-Package Selenium.Spotfire.TestHelpers
For example, at the package manager console on Visual Studio, enter following command to install the MSTest helper package:
PM> Install-Package Selenium.Spotfire.MSTest
Usage
The starting point for automating Spotfire, or running an automated test, is to instantiate a 'driver'. The driver controls an instance of the Chrome browser interacting with Spotfire. Two different drivers are provided:
- Spotfire.Selenium.SpotfireDriver - A general-purpose driver with features for controlling Spotfire.
- Spotfire.Selenium.MSTest.SpotfireTestDriver - A special purpose driver that includes features to help with unit testing.
Both driver classes implement the Disposeable pattern to help ensure that Chrome is closed automatically.
// Create a driver, ensuring that it gets cleaned up automatically
using (SpotfireDriver spotfire = SpotfireDriver.GetDriverForSpotfire())
{
// Open a file from Spotfire
spotfire.OpenSpotfireAnalysis("https://SpotfireServer", "/path to the file");
IReadOnlyCollection<string> pages = spotfire.GetPages();
// Move to the first page
spotfire.SetPage(pages.ElementAt(0));
}
The general pattern for using the driver classes is:
- Create a driver using the GetDriverForSpotfire method.
- Open a Spotfire analysis.
- Interact with the analysis.
- Dispose of the driver.
Further information
The project is hosted on GitHub - you can view the full documentation there.
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. |
.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. |
-
.NETStandard 2.0
- CsvTextFieldParser (>= 1.2.1)
- Newtonsoft.Json (>= 12.0.3)
- 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 Selenium.Spotfire:
Package | Downloads |
---|---|
Selenium.Spotfire.MSTest
Support for the creation of MSTest based unit tests for Spotfire using Selenium, part of the Spotfire.Selenium project. |
|
Selenium.Spotfire.TestHelpers
Helpers for all types of tests using Spotfire and Selenium, part of the Spotfire.Selenium project. |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.0 - initial public release