Unickq.SpecFlow.Selenium 1.2.3

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

// Install Unickq.SpecFlow.Selenium as a Cake Tool
#tool nuget:?package=Unickq.SpecFlow.Selenium&version=1.2.3

Installation:

  • 1 - Download latest build from Nuget NuGet This app

  • 2 - Create App.config

  • 3 - Add following config sections to config

<configSections>
    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
    <section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration" />
</configSections>
  • 4 - Add specFlow parameters to config
<specFlow>
    <unitTestProvider name="Unickq.SpecFlow.Selenium" />
    <generator allowDebugGeneratedFiles="true" markFeaturesParallelizable="true"/>
    <plugins>
      <add name="Unickq.SpecFlow.Selenium"/>
    </plugins>
</specFlow>
  • 5 - Add browser component services to autofac section
<autofac>
   <components>
      <component name="Chrome" type="OpenQA.Selenium.Chrome.ChromeDriver, WebDriver" service="OpenQA.Selenium.IWebDriver, WebDriver" instance-scope="per-dependency" />
      <component name="ChromeIphone" type="Unickq.SpecFlow.Selenium.Local.ChromeDriver, Unickq.SpecFlow.Selenium.SpecFlowPlugin" service="OpenQA.Selenium.IWebDriver, WebDriver" instance-scope="per-dependency">
         <parameters>
            <parameter name="capabilities">
               <dictionary>
                  <item key="arguments" value="--window-size=395,687" />
                  <item key="mobileEmulation" value="iPhone 6" />
               </dictionary>
            </parameter>
         </parameters>
      </component>
   </components>
</autofac>
  • 6 - Add @Browser:Chrome to your feature file.
  • 7.1 - Get and use IWebDriver instance
ScenarioContext.Get<IWebDriver>("Driver")

from static scenario context.

  • 7.2 - Create basic class for step binding classes if you want to use Parallelizable attributes in tests.
    public class SeleniumHelperBinding
    {
        protected readonly ScenarioContext ScenarioContext;
        protected readonly IWebDriver Browser;

        protected SeleniumHelperBinding(ScenarioContext scenarioContext)
        {
            if (scenarioContext == null) throw new ArgumentNullException("scenarioContext");
            ScenarioContext = scenarioContext;
            Browser = scenarioContext.GetWebDriver();
        }
    }
  • 8 - Enjoy 🙋
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Unickq.SpecFlow.Selenium:

Package Downloads
Unickq.SpecFlow.Selenium.Allure

Unickq.SpecFlow.Selenium with Allure support

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 8,062 9/4/2018
1.3.0-beta1 988 8/28/2018
1.3.0-alfa81 1,054 8/10/2018
1.3.0-alfa6 1,078 8/7/2018
1.2.3 2,181 6/7/2018
1.2.0 4,680 12/28/2017
1.1.0 1,499 9/26/2017

Updates for grid parsing logic:
@@env:EnvVar
@@time
@@datetime
@@machine
@@user