Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 776 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 776 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 (IWebDriver 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);
    }
}