An open API service indexing awesome lists of open source software.

https://github.com/bbaia/protractor-net

The .NET port of Protractor, an E2E test framework for Angular apps
https://github.com/bbaia/protractor-net

angular c-sharp dotnet e2e-tests protractor

Last synced: about 2 months ago
JSON representation

The .NET port of Protractor, an E2E test framework for Angular apps

Awesome Lists containing this project

README

        

Protractor for .NET [![CI](https://github.com/bbaia/protractor-net/actions/workflows/ci.yml/badge.svg)](https://github.com/bbaia/protractor-net/actions/workflows/ci.yml)
===================

The .NET port of [Protractor](https://github.com/angular/protractor), an end to end test framework for Angular applications.

Protractor for .NET is built on top of [Selenium WebDriver](http://www.seleniumhq.org/projects/webdriver/) C# binding.

[Changelog](https://github.com/bbaia/protractor-net/blob/master/HISTORY.md)

## Get it from NuGet!

PM> Install-Package Protractor

Supports Microsoft .NET 5, .NET Framework 4.5 and .NET Standard 2.0.

## Write tests!

```csharp
[Test]
public void ShouldGreetUsingBinding()
{
// Instantiate a classic Selenium WebDriver
var driver = new ChromeDriver();
// Configure timeouts (important since Protractor uses asynchronous client side scripts)
driver.Manage().Timeouts().AsynchronousJavaScript = TimeSpan.FromSeconds(5);

using (var ngDriver = new NgWebDriver(driver))
{
ngDriver.Url = "http://www.angularjs.org";
ngDriver.FindElement(NgBy.Model("yourName")).SendKeys("Julie");
Assert.AreEqual("Hello Julie!", ngDriver.FindElement(NgBy.Binding("yourName")).Text);
}
}
```

## Getting Help

Please ask usage and debugging questions on [StackOverflow](http://stackoverflow.com/questions/tagged/protractor-net) (use the ["protractor-net"](http://stackoverflow.com/questions/ask?tags=protractor-net) tag)

## When to NOT use?

When you can use the original [Protractor](http://www.protractortest.org/) framework :)