protected override void PerformAs(IActor actor, AutoWorkshopDriver driver) { actor.AttemptsTo( SendKeys.To(ChangeCarRegistrationPage.CurrentRegistration, _currentRegistration), SendKeys.To(ChangeCarRegistrationPage.NewRegistration, _newRegistration), Click.On(ChangeCarRegistrationPage.UpdateRegistration), AcceptAlert.StartsWithText($"Change registration {_currentRegistration} to registration {_newRegistration}?")); }
protected override void PerformAs(IActor actor, AutoWorkshopDriver driver) { actor.AttemptsTo( SendKeys.To(JobMaintenancePage.Description, _description), ChooseDate.For(JobMaintenancePage.Start, _date), SendKeys.To(JobMaintenancePage.Hours, _hours.ToString("0.##")), SendKeys.To(JobMaintenancePage.Mileage, _mileage.ToString()), Click.On(JobMaintenancePage.Save), AcceptAlert.StartsWithText("Have you checked MOT")); }