Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 769 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 769 Bytes

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.

Get it from NuGet!

PM> Install-Package Protractor

Supports Microsoft .NET Framework 3.5 and higher.

Write tests!

[Test]
public void ShouldGreetUsingBinding()
{
    using (var ngDriver = new NgWebDriver(new ChromeDriver()))
    {
        ngDriver.Url = "http://www.angularjs.org";
        ngDriver.FindElement(NgBy.Model("yourName")).SendKeys("Julie");
        Assert.AreEqual("Hello Julie!", ngDriver.FindElement(NgBy.Binding("yourName")).Text);
    }
}