コード例 #1
0
 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;
   }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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;
   }
 }
コード例 #4
0
 public void verifyAppleCareInsuranceStatus() {
   Utilities.dropdownSelect(
       viewDetailsDropdown, Utilities.SelectDropMethod.SELECTBYTEXT, "View POA Extra Infos");
   Assert.assertEquals(appleCareInsuranceStatus.getText(), "1");
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public String getChildOrderId() {
   Utilities.waitForElementVisible(PageBase.OrderSummaryPage().childOrder);
   String childOrderId = PageBase.OrderSummaryPage().childOrder.getText();
   return childOrderId;
 }
コード例 #7
0
 public String getIssuedRMA() {
   Utilities.waitForElementVisible(PageBase.OrderSummaryPage().issuedRMA);
   String issuedRMA = PageBase.OrderSummaryPage().issuedRMA.getText();
   return issuedRMA;
 }
コード例 #8
0
 // / <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;
 }