예제 #1
0
 private bool UIVerify_PickupDetails(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         //Pickup
         _StopsTab.Pickup_Update.Click();
         _StopsTab.WaitUntilLoading();
         if (!_StopsTab.ArrivalDate.IsDisplayed(10))
         {
             Assert.IsTrue(_StopsTab.ArrivalDate.UIVerify(LoadDetailsUIVerifyData.Pickup_ArrivalDate));
             Assert.IsTrue(_StopsTab.ArrivalTime.UIVerify(LoadDetailsUIVerifyData.Pickup_ArrivalTime));
             Assert.IsTrue(_StopsTab.DepartureDate.UIVerify(LoadDetailsUIVerifyData.Pickup_DepartureDate));
             Assert.IsTrue(_StopsTab.DepartureTime.UIVerify(LoadDetailsUIVerifyData.Pickup_DepartureTime));
         }
         // Object desciption is changing based on type of load progress = 'Pending'
         else
         {
             Assert.IsTrue(_StopsTab.Pickup_ArrivalDate_Disabled.UIVerify(LoadDetailsUIVerifyData.Pickup_ArrivalDate));
             Assert.IsTrue(_StopsTab.Pickup_ArrivalTime_Disabled.UIVerify(LoadDetailsUIVerifyData.Pickup_ArrivalTime));
             Assert.IsTrue(_StopsTab.Pickup_DepartureDate_Disabled.UIVerify(LoadDetailsUIVerifyData.Pickup_DepartureDate));
             Assert.IsTrue(_StopsTab.Pickup_DepartureTime_Disabled.UIVerify(LoadDetailsUIVerifyData.Pickup_DepartureTime));
         }
         _StopsTab.Stop_UpdateCancel.Click();
         _StopsTab.WaitUntilLoading();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
예제 #2
0
 //This function assume that non- factorting company the load details page is open already.
 public string UIVerify()
 {
     try
     {
         LoadDetailsUIVerifyData LoadDetailsUIVerifyData = new LoadDetailsUIVerifyData(_datamanager);
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_TRACKING")
         {
             Assert.IsTrue(UIVerify_TrackingDetails(LoadDetailsUIVerifyData));
         }
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper().Contains("LOADDETAILS_STOPS"))
         {
             Assert.IsTrue(UIVerify_Stops(LoadDetailsUIVerifyData));
         }
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_DOCUMENTS")
         {
             Assert.IsTrue(UIVerify_Documents(LoadDetailsUIVerifyData));
         }
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_CHARGES")
         {
             Assert.IsTrue(UIVerify_Charges(LoadDetailsUIVerifyData));
         }
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_TENDERSTATUS")
         {
             Assert.IsTrue(UIVerify_TenderStatus(LoadDetailsUIVerifyData));
         }
         return("VerificationSuccess");
     }
     catch
     {
         return("VerificationFailed");
     }
 }
예제 #3
0
 private bool UIVerify_LumberReported(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         Assert.IsTrue(_StopsTab.ReportLumperLink.UIVerify(LoadDetailsUIVerifyData.Report_Lumper));
         return(true);
     }
     catch
     {
         return(false);
     }
 }
예제 #4
0
 private bool UIVerify_Documents(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         NavigateTo_DocumentsTab();
         _LoadDetails_DocumentTab.RequiredDocusments.UIVerify(LoadDetailsUIVerifyData.Documents_RequiredDocs);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
예제 #5
0
 private bool UIVerify_TenderStatus(LoadDetailsUIVerifyData loadDetailsUIVerifyData)
 {
     try
     {
         NavigateTo_TenderStatusTab();
         Assert.IsTrue(_TenderStatusTab.TenderStatus_Row.UIVerify(loadDetailsUIVerifyData.TenderStatus_Row));
         Assert.IsTrue(_TenderStatusTab.TenderedLoadAlert.GetText().Contains("This is the first time") ||
                       _TenderStatusTab.TenderedLoadAlert.GetText().Contains("This lane has gone"));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #6
0
 private bool UIVerify_Charges(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         NavigateTo_ChargesTab();
         List <int> index = _ChargesTab.ChargesTable_ChargesCol.GetElementIndex(LoadDetailsUIVerifyData.Charges_Type);
         if (_ChargesTab.ChargesTable_AmountCol.GetText(index[0]).ToUpper() == LoadDetailsUIVerifyData.Charges_Amount.ToUpper())
         {
             return(true);
         }
         return(false);
     }
     catch
     {
         return(false);
     }
 }
예제 #7
0
 private bool UIVerify_Stops(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         //Stops
         NavigateTo_StopTab();
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_STOPSPICKUP")
         {
             Assert.IsTrue(UIVerify_DeliveryDetails(LoadDetailsUIVerifyData));
         }
         if (LoadDetailsUIVerifyData.LoadDetails_Tab.ToUpper() == "LOADDETAILS_STOPSDELIVERY")
         {
             Assert.IsTrue(UIVerify_PickupDetails(LoadDetailsUIVerifyData));
         }
         Assert.IsTrue(UIVerify_LumberReported(LoadDetailsUIVerifyData));
         return(true);
     }
     catch
     {
         return(false);
     }
 }
예제 #8
0
 private bool UIVerify_TrackingDetails(LoadDetailsUIVerifyData LoadDetailsUIVerifyData)
 {
     try
     {
         NavigateTo_TrackingTab();
         _TrackingTab.WaitUntilLoading();
         Assert.IsTrue(_LoadDetails_SummaryDetails.DispatchDetail_Message.UIVerify(LoadDetailsUIVerifyData.DispatchDetail_Message));
         if (LoadDetailsUIVerifyData.EntityType.ToUpper() == Constants.Entity_Customer)
         {
             //Summary
             Assert.IsTrue(_LoadDetails_SummaryDetails.Customer_SummaryDetails_Progress.UIVerify(LoadDetailsUIVerifyData.LoadProgress));
             //Dispatch
             Assert.IsTrue(_LoadDetails_DispatchPanel.Customer_Dispatch_Carrier.UIVerify(LoadDetailsUIVerifyData.Dispatch_CarrierName));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Customer_Dispatch_ProNo.UIVerify(LoadDetailsUIVerifyData.Dispatch_ProNo));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Customer_Dispatch_Tractor.UIVerify(LoadDetailsUIVerifyData.Dispatch_TractorNameText));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Customer_Dispatch_Trailer.UIVerify(LoadDetailsUIVerifyData.Dispatch_Trailer));
         }
         if (LoadDetailsUIVerifyData.EntityType.ToUpper() == Constants.Entity_Carrier)
         {
             //Summary
             Assert.IsTrue(_LoadDetails_SummaryDetails.Carrier_SummaryDetails_Progress.UIVerify(LoadDetailsUIVerifyData.LoadProgress));
             //Dispatch
             Assert.IsTrue(_TrackingTab.Dispatch_DispatchDriverButton.UIVerify(LoadDetailsUIVerifyData.Dispatch_DispatchDriverButton));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Carrier_Dispatch_DriverName.UIVerify(LoadDetailsUIVerifyData.Dispatch_DriverNameText));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Carrier_Dispatch_DriverPhone.UIVerify(LoadDetailsUIVerifyData.Dispatch_DriverPhoneText));
             Assert.IsTrue(_LoadDetails_DispatchPanel.Carrier_Dispatch_Tractor.UIVerify(LoadDetailsUIVerifyData.Dispatch_TractorNameText));
         }
         //Tracking Notes Table
         Assert.IsTrue(_TrackingTab.TrackingNotes_1stRow_Action.UIVerify(LoadDetailsUIVerifyData.TrackingNotes_1stRow_Action));
         Assert.IsTrue(_TrackingTab.TrackingNotes_1stRow_Notes.UIVerify(LoadDetailsUIVerifyData.TrackingNotes_1stRow_Notes));
         return(true);
     }
     catch
     {
         return(false);
     }
 }