public void AddRatiosOrConditions() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.RatiosOrConditionsTab.Header); }); }
public void SelectItemFromFavorites(string item) { var mainWindow = Container.GetInstance <WindowFactory <MainWindow> >().Context; Click.On(mainWindow.MenuButtonPane.Favorites); RightClick.On(mainWindow.MenuButtonTreePane.FindTreeItem("DEAL_TEST")); }
public void SelectOutstandingSelectFromDealNotebookWindow() { var dealNotebookWindow = Container.GetInstance <WindowFactory <DealNotebookWindow> >().Context; Click.On(dealNotebookWindow.QueriesMenuItem); Click.On(dealNotebookWindow.QueriesMenuItems("Outstanding Select...")); }
public void AddAdditional() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.AdditionalTab.Header); }); }
public void PerformAs(User user) { Log.Task("log out of the DMI"); user.AttemptsTo(Click.On(Screens.DMIDashboardPageScreen.AccountDropDownToggle), Click.ThelastButton()); user.ShouldSee(PageDisplayed.Is("login")); }
public void PerformAs(User user) { user.AttemptsTo(Enter.TheText(user.dmiuser.username).Into(usernameTextBox), Enter.TheText(newPassword).Into(passwordTextBox), Enter.TheText(newPassword).Into(confirmPasswordTextBox), Click.On(submitButton)); }
public void SelectAction(string actionItem) { var mainWindow = Container.GetInstance <WindowFactory <MainWindow> >().Context; Click.On(mainWindow.MenuButtonPane.Actions); DoubleClick.On(mainWindow.MenuButtonTreePane.FindTreeItem(actionItem)); }
public void CreateDeal(string dealName, string dealAlias, string currency) { Wait.For(this.GetWindow <MainWindow>(), window => { window.Maximize(); Click.On(window.MenuButtonPane.Actions); DoubleClick.On(window.MenuButtonTreePane.FindTreeItem("Deal")); }); Wait.For(this.GetWindow <DealSelectWindow>(), window => { Click.On(window.NewRadioButton); Enter.TextInto(window.NameTextBox, StringHelpers.GenerateNameWithSuffix(dealName)); Enter.TextInto(window.AliasTextBox, StringHelpers.GenerateNameWithSuffix(dealAlias)); Select.By(window.CurrencyComboBox, currency); Select.By(window.DepartmentComboBox, 0); Click.On(window.OkButton); Wait.For(this.GetWindow <WarningWindow>(), dialog => { Click.On(dialog.YesButton); }); }, WaitToFinish.YES); }
public void CompletePersonalTab() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.PersonnelTab.Header); Click.On(window.PersonnelTab.ExpenseCodeButton); Wait.For(this.GetWindow <DealSelectExpenseCodeWindow>(), dialog => { Click.On(dialog.AllExpenseCodesButton); }); Wait.For(this.GetWindow <CommonSelectCodeWindow>(), dialog => { Enter.TextInto(dialog.SearchByCodeTextBox, "000001"); Click.On(dialog.OkButton); }); Click.On(window.PersonnelTab.SaleGroupsButton); Wait.For(this.GetWindow <SalesGroupsSelectionListWindow>(), dialog => { Select.By(dialog.AvailableTree, 0); Click.On(dialog.OkButton); }); }); }
public void PerformAs(IActor actor) { actor.AttemptsTo(Click.On(FlightBookingPage.FromButton)); actor.AttemptsTo(Click.On(FlightBookingPage.FromButton)); actor.AttemptsTo(SendKeys.To(FlightBookingPage.FromInput, FromCity)); Thread.Sleep(2000); actor.AttemptsTo(Click.On(FlightBookingPage.GoaCity)); actor.AttemptsTo(Click.On(FlightBookingPage.ToButton)); actor.AttemptsTo(Click.On(FlightBookingPage.ToButton)); actor.AttemptsTo(SendKeys.To(FlightBookingPage.ToInput, ToCity)); Thread.Sleep(2000); actor.AttemptsTo(Click.On(FlightBookingPage.MumbaiCity)); actor.AttemptsTo(Click.On(L("DEPARTURE Date", By.XPath("//div[@aria-label='" + DepatureDate + "']//div[@class='dateInnerCell']")))); actor.AttemptsTo(Click.On(FlightBookingPage.Return)); actor.AttemptsTo(Click.On(L("Return Date", By.XPath("//div[@aria-label='" + ReturnDate + "']//div[@class='dateInnerCell']")))); actor.AttemptsTo(Click.On(FlightBookingPage.NoOfTravellerAndClass)); actor.AttemptsTo(Click.On(L("Number OF Adults", By.XPath("//li[@data-cy='adults-" + Convert.ToString(NoOfAdults) + "']")))); actor.AttemptsTo(Click.On(L("Number OF Children", By.XPath("//li[@data-cy='children-" + Convert.ToString(NoOfChild) + "']")))); if (string.Equals(ClassType, "Economy")) { actor.AttemptsTo(Click.On(FlightBookingPage.EconomyClass)); } actor.AttemptsTo(Click.On(FlightBookingPage.ApplyButton)); }
public void AddMISCodes() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.MISCodesTab.Header); }); }
public void UpdateAddress(Table addressTable) { var activeCustomerWindow = Container.GetInstance <WindowFactory <ActiveCustomerWindow> >().Context; Click.On(activeCustomerWindow.ProfilesTabItem); Click.On(activeCustomerWindow.GenaralButton("Addresses")); var addressListWindow = Container.GetInstance <WindowFactory <AddressListWindow> >().Context; Click.On(addressListWindow.AddButton); var updateAddressWindow = Container.GetInstance <WindowFactory <UpdateAddressWindow> >().Context; var values = addressTable.GetTableRows().Select(x => x.GetCell("Value")).ToList(); Enter.TextInto(updateAddressWindow.AddressCode, values[0]); Enter.TextInto(updateAddressWindow.Line1, values[1]); Enter.TextInto(updateAddressWindow.Line2, values[2]); Enter.TextInto(updateAddressWindow.City, values[3]); Select.By(updateAddressWindow.Country, values[4]); Enter.TextInto(updateAddressWindow.DefaultPhoneNumber, values[5]); Enter.TextInto(updateAddressWindow.ZipPostalCode, values[6]); Click.On(updateAddressWindow.OkButton); Click.On(addressListWindow.GenaralButton("Exit")); }
public void AddComments() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.CommentsTab.Header); }); }
public void AddDealInternalRiskRating(Table riskRatingTable) { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.RiskOrRegulatoryTab.Header); Click.On(window.RiskOrRegulatoryTab.AddButton); Wait.For(this.GetWindow <WarningWindow>(), dialog => { Click.On(dialog.YesButton); }); }); Wait.For(this.GetWindow <DealInternalRiskRatingDetailsWindow>(), window => { Select.By(window.RatingComboBox, riskRatingTable.FindValue("Rating"), VirtualKeyShort.ENTER); Wait.For(new[] { window.ValueComboBox }, ratings => { Select.By(window.ValueComboBox, riskRatingTable.FindValue("Value"), VirtualKeyShort.ENTER); Enter.TextInto(window.EffectiveDatePicker, riskRatingTable.FindValue("Effective Date")); Enter.TextInto(window.ExpirationDatePicker, riskRatingTable.FindValue("Expiration Date")); Enter.TextInto(window.PercentageTextBox, riskRatingTable.FindValue("Percent")); Click.On(window.OkButton); }); }); }
public void AddProfileTabContactAddress(Table addressTable) { var contactDetail = Container.GetInstance <WindowFactory <CustomerContactListDetailWindow> >().Context; Select.By(contactDetail.AddressesTab.MailingAddressCodeComboBox, 1, VirtualKeyShort.ENTER); Click.On(contactDetail.CurrencyTabButton); }
public void TypesOrPurposes(Table typesTable) { Wait.For(this.GetWindow <FacilityWindow>(), window => { Click.On(window.TypesOrPurposesTab.Header); Click.On(window.TypesOrPurposesTab.AddButton); Wait.For(this.GetWindow <WarningWindow>(), dialog => { Click.On(dialog.YesButton); }); Wait.For(this.GetWindow <FacilityRiskTypeDetailsWindow>(), dialog => { Select.By(dialog.RiskType, typesTable.FindValue("Risk Type"), VirtualKeyShort.ENTER); Enter.TextInto(dialog.Limit, typesTable.FindValue("Limit")); Click.On(dialog.OkButton); }); Click.On(window.TypesOrPurposesTab.LoanPurposeTypes); }); Wait.For(this.GetWindow <FacilityLoanPurposeSelectWindow>(), window => { Select.By(window.AvailableList, 2); Click.On(window.OkButton); }); }
public void SelectExistingDeal(string deal) { var dealSelectWindow = Container.GetInstance <WindowFactory <DealSelectWindow> >().Context; Click.On(dealSelectWindow.ExistingRadioButton); Enter.TextInto(dealSelectWindow.NameTextBox, deal); Click.On(dealSelectWindow.OkButton, true); }
public void AddRestrictions() { Wait.For(this.GetWindow <DealNotebookWindow>(), window => { Click.On(window.RestrictionsTab.Header); Enter.TextInto(window.RestrictionsTab.MaxNumberOfLoans, "3"); }); }
public void PopulateFacilitySelect(Table facilityTable) { var facilitySelectWindow = Container.GetInstance <WindowFactory <FacilitySelectWindow> >().Context; Enter.TextInto(facilitySelectWindow.DealTextBox, facilityTable.FindValue("Deal")); Enter.TextInto(facilitySelectWindow.NameTextBox, facilityTable.FindValue("Name")); Click.On(facilitySelectWindow.OkButton, true); }
/// <summary> /// With data. /// </summary> /// <param name="driver">driver.</param> /// <param name="name">name.</param> /// <param name="email">email.</param> /// <param name="address">address.</param> /// <param name="phone">phone.</param> public static void WithTheData(IWebDriver driver, string name, string email, string address, string phone) { Enter.Text(driver, EmployeeUI.GetNameInput(), name); Enter.Text(driver, EmployeeUI.GetEmailInput(), email); Enter.Text(driver, EmployeeUI.GetAddressTextArea(), address); Enter.Text(driver, EmployeeUI.GetPhoneInput(), phone); Click.On(driver, EmployeeUI.GetAddButton()); }
public static void As(IWebDriver driver, string text, string branch) { Enter.Text(driver, SearchUI.UserInput, text); Click.On(driver, SearchUI.SearchButton); Enter.Text(driver, SearchUI.FieldSearchBranch, branch); Click.On(driver, SearchUI.BranchPuma); Click.On(driver, SearchUI.Size); }
public static void WithTheData(IWebDriver driver, string name, string email, string address, string phone) { Enter.Text(driver, EmployeeUI.NameInput, name); Enter.Text(driver, EmployeeUI.EmailInput, email); Enter.Text(driver, EmployeeUI.AddressTextArea, address); Enter.Text(driver, EmployeeUI.PhoneInput, phone); Click.On(driver, EmployeeUI.AddButton); }
public void PerformAs(User user) { By expandDataGridToggle = DMISettlementsPageScreen.closedDatagridArrowToggle; while (Element.WithId(expandDataGridToggle).CanBeFoundOnThePageBy(user)) { user.AttemptsTo(Click.On(expandDataGridToggle)); } }
protected override void PerformAs(IPerformer actor) { var removeButtons = actor.Perform(Elements.InThePageBody().ThatAre(EditTicket.RemoveLabelButtons).Called("The remove buttons")); foreach (var button in removeButtons.Elements) { actor.Perform(Click.On(button)); } }
public void GivenThePrivacyPolicyIsNotAccepted() { var privacyPolicyIsChecked = _actor.AskingFor(SelectedState.Of(SubmissionPage.PrivacyPolicy)); if (privacyPolicyIsChecked) { _actor.AttemptsTo(Click.On(SubmissionPage.PrivacyPolicy)); } }
/// <summary> /// As. /// </summary> /// <param name="driver">driver.</param> /// <param name="user">user.</param> /// <param name="passWord">password.</param> public static void As(IWebDriver driver, string user, string passWord) { Enter.Text(driver, LoginOutlookUI.GetUserInput(), user); Click.On(driver, LoginOutlookUI.GetLoginButton()); System.Threading.Thread.Sleep(4000); Enter.Text(driver, LoginOutlookUI.GetPassWordInput(), passWord); Click.On(driver, LoginOutlookUI.GetLoginButton()); Click.On(driver, LoginOutlookUI.GetOptionNo()); }
public void CloseDrawdownLiborOptionInitialWindowWithoutSaving() { var liborOptionWindow = Container.GetInstance <WindowFactory <DrawdownLiborOptionInitialWindow> >().Context; Click.On(liborOptionWindow.CloseWindowButton); var exitingWindow = Container.GetInstance <WindowFactory <ExitingWindow> >().Context; Click.On(exitingWindow.ExitNoSaveButton); }
public void SelectDeparmentCode(string code) { var activeCustomerWindow = this.Container.GetInstance <WindowFactory <ActiveCustomerWindow> >().Context; Click.On(activeCustomerWindow.GeneralTab.GenaralButton("Department")); var departmentWindow = this.Container.GetInstance <WindowFactory <CommonSelectCodeWindow> >().Context; Enter.TextInto(departmentWindow.SearchByCodeTextBox, code); Click.On(departmentWindow.OkButton); }
public void SelectCustomerClassificationCode(string code) { var activeCustomerWindow = this.Container.GetInstance <WindowFactory <ActiveCustomerWindow> >().Context; Click.On(activeCustomerWindow.GeneralTab.GenaralButton("Classification")); var customerWindow = this.Container.GetInstance <WindowFactory <CommonSelectCodeWindow> >().Context; Enter.TextInto(customerWindow.SearchByCodeTextBox, code); Click.On(customerWindow.OkButton); }
protected override void PerformAs(IPerformer actor) { var newItemTextbox = new CssSelector("#newItemText", "the new-item text box"); actor.Perform(Enter.TheText(item).Into(newItemTextbox)); var theAddButton = new CssSelector("#newItemButton", "the add-item button"); actor.Perform(Click.On(theAddButton)); }