Fluent wrapper around WatiN
C# Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
settings
src
tools/selenium-server-1.0.1
.gitignore
Build.bat
InstallGems.bat
License.txt
Provenance.txt
README.md
RakeFile
Ruby_Not_Installed.txt
go.bat

README.md

FluentWebUITesting ReadMe

Description

FluentWebUITesting is a fluent wrapper around WebDriver for web interface tests.

Examples

[Test]
public void Should_display_the_date_the_installation_expires()
{
    var steps = UITestRunner.InitializeWorkFlowContainer(
        b => b.LabelWithId("lblAccuMail").Verify(
                x => x.Exists().ShouldBeTrue(),
                x => x.Text().StartsWith("Expires on").ShouldBeTrue()
                )
        );
    RunTest("Public/Environment.aspx", "Environment", steps);
}

[Test]
public void Should_navigate_to_the_Edit_page_if_Add_New_is_clicked()
{
    var steps = UITestRunner.InitializeWorkFlowContainer(
        b => b.ButtonWithVisibleText("Add New").Click(),
        b => b.Title.ShouldBeEqualTo(EditTitle, "clicking Add New should put the user on the edit page"),
        b => b.ButtonWithVisibleText("Save").Exists().ShouldBeTrue(),
        b => b.ButtonWithVisibleText("Delete").Exists().ShouldBeFalse(),
        b => b.ButtonWithVisibleText("Download").Exists().ShouldBeFalse()
        );
    RunTest(PartialUrl, ListTitle, steps);
}

How To Build:

The build script requires Ruby with rake installed.

  1. Run InstallGems.bat to get the ruby dependencies (only needs to be run once per computer)
  2. open a command prompt to the root folder and type rake to execute rakefile.rb

If you do not have ruby:

  1. You need to create a src\CommonAssemblyInfo.cs file. Go.bat will copy src\CommonAssemblyInfo.cs.default to src\CommonAssemblyInfo.cs
  2. open src\FluentWebUITesting.sln with Visual Studio and build the solution

License

MIT License

This project is part of MVBA's Open Source Projects.