using LoginPI.Engine.ScriptBase; public class facetsHealthcare_3_customerservicetask : ScriptBase { private void Execute() { /* -Disclaimer: This workload is provided as-is and might need further configuration and customization to work successfully in each unique environment. For further Professional Services-based customization please consult with the Login VSI Support and Services team. Please refer to the Help Center section "Application Customization" for further self-help information regarding workload crafting and implementation. -Run the workload against the "target" using Script Editor to ensure it will work before uploading it and testing with it -If needed, configure the Set global variables section of this workload -Go through the workload to understand what it's doing. Comment out any unneeded app tests (code blocks) or add on any needed functional testing -This workload will: Go through predefined workflow to process Customer service tasks -Workload version and changelist: --V1.0 | original -Leave Application running compatibility: false */ // create variable for the Facets window var FacetsMainUI = FindWindow(processName : "ceraexe0"); // focus Facets window FacetsMainUI.Focus(); // populating metadata for customer service into a var -> clicking on the var var CustomerServicePPMO = FacetsMainUI.FindControl(className : "TreeItem", title : "Claims Processing + ITS*",timeout:60); Wait(3); CustomerServicePPMO.Click(); Wait(3); Type("Cu"); Wait(3); Type("{RIGHT}"); Wait(3); Type("CU"); Wait(3); Type("{ENTER}"); // find customer service tab FacetsMainUI.FindControl(className : "TabItem", title : "Customer Service - Unassigned ", timeout:30); Wait(3); // clicking on subscriber ID box FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140[2]/Pane:AfxWnd140/Edit:Edit[5]").Click(); Wait(3); // typing in subscriber info -> type: agent/broker -> "a" as first name -> "a" as last name -> clicking next Type("xxxxxxxxx", cpm:120); Wait(3); Type("{TAB}",cpm:120); Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140[2]/Pane:AfxWnd140/Pane:AfxWnd140[3]/Edit:Edit").Click(); Wait(3); Type("{down}{down}", cpm:120); Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140[2]/Pane:AfxWnd140/Edit:Edit").Click(); Wait(3); Type("a",cpm:120); Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140[2]/Pane:AfxWnd140/Edit:Edit[2]").Click(); Wait(3); Type("a",cpm:120); Wait(3); var NextButton = FacetsMainUI.FindControl(className : "Button:Button", title : "&Next",timeout:15); NextButton.Click(); Wait(3); // closing out of the warning messages messagebox if it appears try { var WarningMessages = FindWindow(title : "Warning Messages",timeout:10); Wait(3); WarningMessages.Focus(); Wait(3); var CloseButtonWarningMessages = WarningMessages.FindControl(className : "Button", title : "Close",timeout:30); Wait(3); CloseButtonWarningMessages.Click(); Wait(3); } catch { Log("Warning Window did not appear"); } // find text "task query limit" while waiting for tab to load FacetsMainUI.FindControl(className : "Text:Static", title : "Task Query Limit"); // fill in subject and category (only 1 down arrow each drop down menu) -> click on save button (which will gray out) Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140/Pane:AfxWnd140[2]/Edit:Edit").Click(); Wait(3); Type("{DOWN}", cpm:120); Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140/Pane:AfxWnd140[3]/Edit:Edit").Click(); Wait(3); Type("{DOWN}", cpm:120); Wait(3); FacetsMainUI.FindControlWithXPath(xPath : "Pane:MDIClient/[0]/[1]/Pane:AfxWnd140/Pane:AfxWnd140[10]/Edit:Edit").Click(); Wait(3); Type("{DOWN}", cpm:120); Wait(3); FacetsMainUI.FindControl(className : "Button:Button", title : "&Save Task",timeout:15).Click(); Wait(3); // resetting the facets ui by clicking on window button -> close all applications -> making sure workspace reset FacetsMainUI.FindControl(className : "MenuItem", title : "Window").Click(); Wait(3); Type("{DOWN}{ENTER}", cpm:120); var FacetsCloseAllApplications = FindWindow(title : "Facets", processName : "ceraexe0",timeout:15); FacetsCloseAllApplications.Focus(); Wait(3); FacetsCloseAllApplications.FindControlWithXPath(xPath : "Button:Button").Click(); Wait(3); FacetsMainUI.FindControl(className : "Pane:MDIClient", title : "Workspace",timeout:15); Wait(3); } }