Skip to content

Onboarding

peterrexj edited this page Sep 1, 2019 · 3 revisions

Prerequisites

Visual Studio 2017 or higher

You need to know

  • basics of writing test using Selenium (the concept of IWebDriver, IWebElement)
  • inspect and find elements (defining selectors that are required for page objects)
  • basics of integration testing if you are planning for API tests

Install

Install the nuget package against your working project

nuget install Selenium.Essentials

Refer the namespace

Refer the namespace on all your class files where you want to use this extension. All the required extensions and methods are now defined under the same namespace.

using Selenium.Essentials

Initialize Framework

Initialize the framework to start using the extension. Initialization process creates a test context (test container) which holds the test information against the test case scenario. Call this method before the test start, for example [Setup] method or in hooks for Specflow [BeforeScenario] method

[SetUp]
public void Setup()
{
   Utility.InitializeFramework();
}

You are all ready to start writing code using Selenium.Essentials

Clone this wiki locally