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 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 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 verifyAppleCareInsuranceStatus() { Utilities.dropdownSelect( viewDetailsDropdown, Utilities.SelectDropMethod.SELECTBYTEXT, "View POA Extra Infos"); Assert.assertEquals(appleCareInsuranceStatus.getText(), "1"); }
public void goToOrderSummaryPage(String orderId) { Utilities.waitForElementVisible(PageBase.ShipAdminPage().orderTextbox); PageBase.ShipAdminPage().orderTextbox.sendKeys(orderId); PageBase.ShipAdminPage().orderTextbox.sendKeys(Keys.ENTER); Utilities.waitForElementVisible(PageBase.OrderSummaryPage().statusValueLink); }
public String getChildOrderId() { Utilities.waitForElementVisible(PageBase.OrderSummaryPage().childOrder); String childOrderId = PageBase.OrderSummaryPage().childOrder.getText(); return childOrderId; }
public String getIssuedRMA() { Utilities.waitForElementVisible(PageBase.OrderSummaryPage().issuedRMA); String issuedRMA = PageBase.OrderSummaryPage().issuedRMA.getText(); return issuedRMA; }
// / <summary> // / This function will be used to get value of status as string w.r.t. // order id. // / Pass the order id as string. // / It will return value of status as string. // / </summary> // / Author:Tarun public String getOrderStatus() { Utilities.waitForElementVisible(PageBase.OrderSummaryPage().statusValueLink); String status = PageBase.OrderSummaryPage().statusValueLink.getText(); return status; }