Skip to content

Svaerth/CSharpSeleniumDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSharp Selenium Demo

This is a demonstration of how a Selenium test suite can be written using C# and NUnit.

The tests in this project test this site, which is a website created by the Selenium devs to act as a testing ground for aspiring automated test writers.

Project Structure

The parts of the project you may want to checkout are as follows:

  • SeleniumTestSuiteExample: This is the main folder, All of the following items are in here.
  • EntryPoint.cs: The entry point of the application.
  • PageModels: Here you'll find the models of each webpage that is tested.
  • TestSuites: Here you'll find the actual tests.

How To Run

Prerequisites

You'll need the following to be installed in order to run this application:

Application Arguments

You'll need to create an account on this website and pass in the following arguments to the application:

-email (email of acct you just created) -password (password of acct you just created)

You can find help on how to pass in application arguments here

Running the Application

Once the above steps are finished you can simply open SeleniumTestSuiteExample.sln in Visual Studio and click the run button.

Note: This test suite takes about 50 min. to run in it's entirety so you may want to comment out all but the tests that you're interested to see in action.

About

A demonstration of how C# can be used to write a Selenium test suite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages