Selenium.Spotfire 1.0.0

There is a newer version of this package available.
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
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="Selenium.Spotfire" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Selenium.Spotfire --version 1.0.0
#r "nuget: Selenium.Spotfire, 1.0.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.
// 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 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 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.

Version Downloads Last updated
3.1.0 11,239 4/26/2021
3.0.0 772 4/14/2021
2.1.0 538 4/8/2021
2.0.0 1,036 7/30/2020
1.1.0 625 7/21/2020
1.0.0 680 7/14/2020

1.0.0 - initial public release