Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

baodrate/protractor-net-standard

Repository files navigation

Protractor for .NET

The .NET port of Protractor, an end to end test framework for Angular applications.

Protractor for .NET is built on top of Selenium WebDriver C# binding.

Changelog

Get it from NuGet!

PM> Install-Package Protractor

Supports Microsoft .NET Framework 3.5 and higher.

Write tests!

[Test]
public void ShouldGreetUsingBinding()
{
    // Instanciate a classic Selenium's 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 (use the "protractor-net" tag)

When to NOT use?

When you can use the original Protractor framework :)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages