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
- Host: GitHub
- URL: https://github.com/bbaia/protractor-net
- Owner: bbaia
- License: mit
- Created: 2013-10-19T15:52:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-12-12T18:47:06.000Z (over 3 years ago)
- Last Synced: 2025-04-02T08:18:47.787Z (2 months ago)
- Topics: angular, c-sharp, dotnet, e2e-tests, protractor
- Language: C#
- Homepage:
- Size: 640 KB
- Stars: 115
- Watchers: 34
- Forks: 71
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
Protractor for .NET [](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 :)