Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Installation

Nick edited this page Dec 22, 2016 · 7 revisions

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="SeleniumNUnit" />
    <plugins>
      <add name="Baseclass.Contrib.SpecFlow.Selenium.NUnit"
           path="%PATH_WITH_PLUGIN_DLL%" />
    </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>
    </components>
</autofac>
  • 6 - Add @Browser:Chrome to your feature file.
  • 7 - Enjoy 🙋
Clone this wiki locally