Skip to content

LambdaTenEleven/dot-net-selenium-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeleniumTesting

This is a project for automatic testing subject in my uni. Here I'm testing Selenium features with .NET. After launch it will open this site (https://www.goldtoe.com), then it will sign in and create a wish list.

How to launch project

  1. Clone this repository or download as zip file and unzip it.
  2. Create an account for our test subject (https://www.goldtoe.com/login.php). You can use fake email.
  3. Create appsettings.json like that:
{
  "email": "your email",
  "password": "your password"
}

Set "Copy to output directory" to "Always" for the appsettings.json file so ConfigurationBuilder would find it. Your .csporj file should have this section:

<ItemGroup>
  <None Update="appsettings.json">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </None>
</ItemGroup>

Or forget about that hassle with ConfigurationBuilder and just pass your credentials directly to the 'email' and 'password' variables in code.
4. Build and launch the project.

About

Example of using Selenium with C# for web testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages