public PassesTest ( IEnumerable |
||
testSteps | IEnumerable |
|
return | FluentWebUITesting.Notification |
public static void RunTest([NotNull] string url, [NotNull] string initialPageTitle, [CanBeNull] IEnumerable <Action <IWebDriver> > testSteps) { Console.WriteLine(url); var steps = new List <Action <IWebDriver> > { b => b.Navigate().GoToUrl(url), b => { if (!String.IsNullOrEmpty(initialPageTitle)) { var wait = new WebDriverWait(b, TimeSpan.FromSeconds(30)); wait.Until(x => b.Title.Equals(initialPageTitle)); b.Title.ShouldBeEqualTo(initialPageTitle, "incorrect page title"); } } }; if (testSteps != null) { steps.AddRange(testSteps); } var notification = _runner.PassesTest(steps) ?? new Notification(); notification.Success.ShouldBeTrue(notification.ToString()); }
public static void RunTest([NotNull] string url, [NotNull] string initialPageTitle, [CanBeNull] IEnumerable <Action <Browser> > testSteps) { Console.WriteLine(url); var steps = new List <Action <Browser> > { b => b.GoTo(url), b => b.WaitForComplete(), b => b.Title.ShouldBeEqualTo(initialPageTitle, "incorrect page title") }; if (testSteps != null) { steps.AddRange(testSteps); } var notification = _runner.PassesTest(steps) ?? new Notification(); notification.Success.ShouldBeTrue(notification.ToString()); }