public void SelectFinancingOption(FinancingOption financeChoice) { switch (financeChoice) { case CHECKFINANCING: Utilities.dropdownSelect(financingDropDown, Utilities.SelectDropMethod.SELECTBYINDEX, "1"); break; case NOFINANCING: Utilities.dropdownSelect(financingDropDown, Utilities.SelectDropMethod.SELECTBYINDEX, "2"); break; } }
public void SelectExchangeReason(ExchangeReason exhangeReason) { switch (exhangeReason) { case INPOLICYGUESTRETURN: Utilities.dropdownSelect( exchangeReasonDropdown, Utilities.SelectDropMethod.SELECTBYINDEX, "1"); break; case WILLNOTPOWERON: Utilities.dropdownSelect( exchangeReasonDropdown, Utilities.SelectDropMethod.SELECTBYINDEX, "2"); break; case OUTSIDEOFPOLICY: Utilities.dropdownSelect( exchangeReasonDropdown, Utilities.SelectDropMethod.SELECTBYINDEX, "3"); break; } }
public void SelectActivationInfo(String orderId) { // viewDetailsDropdown.click(); goToOrderSummaryPage(orderId); Utilities.dropdownSelect( viewDetailsDropdown, Utilities.SelectDropMethod.SELECTBYTEXT, Constants.VIEW_ACTIVATION_INFO); Utilities.waitForElementVisible(deactivateLine1); deactivateLine1.click(); updateButton.click(); }
public void verifyAppleCareInsuranceStatus() { Utilities.dropdownSelect( viewDetailsDropdown, Utilities.SelectDropMethod.SELECTBYTEXT, "View POA Extra Infos"); Assert.assertEquals(appleCareInsuranceStatus.getText(), "1"); }