public void ThenTheSubmittingOfDataWasPossible() { _actor.AsksFor(CurrentUrl.FromBrowser()).Should().EndWith("Success", "because the success page should be displayed"); }
public void ThenTheSubmittingOfDataWasNotPossible() { _actor.AsksFor(CurrentUrl.FromBrowser()).Should().NotEndWith("Success", "the input form page should be displayed again"); }
public void TestGetUrl() { WebDriver.SetupGet(x => x.Url).Returns("google.com"); Actor.AsksFor(CurrentUrl.FromBrowser()).Should().Be("google.com"); }