Exemple #1
0
 public void AddNewClaimForm(string docType, string classType, string claimantId)
 {
     //string docId = elementUtils.GetTextFromElement(DocumentIntakeDetailsPage.DocId);
     elementUtils.SelectDropDownByText(DocumentIntakeDetailsPage.ClassMemberType, classType);
     elementUtils.SelectDropDownByText(DocumentIntakeDetailsPage.DocType, docType);
     elementUtils.SendKeys(DocumentIntakeDetailsPage.SearchClaimantId, claimantId);
     elementUtils.SetElementClickableWait(DocumentIntakeDetailsPage.Search);
     elementUtils.ClickElement(DocumentIntakeDetailsPage.Search);
     elementUtils.ClickElement(DocumentIntakeDetailsPage.AddNewClaimant);
     // return docId;
 }
        public void ApplyEventForAClaimant(string process, string action, string eventOrHold, string claimantId)
        {
            elementUtils.SelectDropDownByText(BulkEventManagementPage.Process, process);
            elementUtils.EnableDropdownByJS(BulkEventManagementPage.Action);
            elementUtils.SetStaleElementWait(BulkEventManagementPage.Action);
            elementUtils.SetElementExistsWait(BulkEventManagementPage.Action);
            elementUtils.SelectDropDownByText(BulkEventManagementPage.Action, action);
            elementUtils.SetElementExistsWait(BulkEventManagementPage.EventDate);
            elementUtils.EnableDropdownByJS(BulkEventManagementPage.EventOrHold);
            elementUtils.SelectDropDownByText(BulkEventManagementPage.EventOrHold, eventOrHold);
            elementUtils.SetPresenceOfElementLocated(BulkEventManagementPage.ClaimantId);
            elementUtils.SendKeys(BulkEventManagementPage.ClaimantId, claimantId);
            elementUtils.SendKeys(BulkEventManagementPage.Comment, claimantId);
            elementUtils.SetElementClickableWait(BulkEventManagementPage.Submit);
            elementUtils.ClickElement(BulkEventManagementPage.Submit);
            elementUtils.SetPresenceOfElementLocated(BulkEventManagementPage.PopUpSubmit);
            elementUtils.SetElementClickableWait(BulkEventManagementPage.PopUpSubmit);
            elementUtils.ClickElement(BulkEventManagementPage.PopUpSubmit);
            string message = elementUtils.GetTextFromElement(BulkEventManagementPage.EventMessage);

            Console.WriteLine(message);
            //return message;
        }
Exemple #3
0
        public void PerformDMIReview(string repReasonType, string repDocProvide, string repDocSufficient, string repDocType)
        {
            elementUtils.SelectRadioButtonByText(ClaimantDetailsPage.RepClaimantReason, repReasonType);
            elementUtils.SelectRadioButtonByText(ClaimantDetailsPage.RepClaimantDocument, repDocProvide);
            elementUtils.SelectRadioButtonByText(ClaimantDetailsPage.RepClaimantDocSufficient, repDocSufficient);
            ClickDocument();
            List <string> docId = GetClaimantDocId();

            elementUtils.SelectDropDownByText(ClaimantDetailsPage.RepDMIDocID, docId[0]);
            elementUtils.SelectDropDownByText(ClaimantDetailsPage.RepDMIDocType, repDocType);
            elementUtils.ClickElement(ClaimantDetailsPage.RepApplyEvent);
            elementUtils.SetElementClickableWait(ClaimantDetailsPage.RepApplyEventPopup);
            elementUtils.ClickElement(ClaimantDetailsPage.RepApplyEventPopup);
        }