protected override void PerformAs(IPerformer actor) { var tickets = actor.Perform(FindTickets.WithTheTitle(title)); tickets.Elements.Should().NotBeEmpty("At least one ticket must exist"); actor.Perform(TheVisibility.Of(tickets)) .Should() .BeTrue("The ticket must visible."); }
protected override void PerformAs(IPerformer actor) { actor.Perform(OpenTheirBrowserOn.ThePage <TicketList>()); var ticket = actor.Perform(FindTickets.WithTheTitle(title)) .Elements .FirstOrDefault(); ticket.Should().NotBeNull("The ticket must exist"); var ticketLink = actor.Perform(Elements.In(ticket).ThatAre(TicketList.TicketLink) .Called($"the hyperlink for ticket '{title}'")); actor.Perform(Navigate.ToAnotherPageByClicking(ticketLink)); actor.Perform(Wait.Until(TicketDetail.TitleContent).IsVisible()); }
protected override void PerformAs(IPerformer actor) { var tickets = actor.Perform(FindTickets.WithTheTitle(title)); tickets.Elements.Should().BeEmpty("The ticket must not be found"); }