Skip to content

ozgurtt/FluentWebUITesting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fluent wrapper around WatiN 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);
}

License

MIT License

This project is part of MVBA Law Commons.

About

Fluent wrapper around WatiN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published