using LoginPI.Engine.ScriptBase; public class facetsHealthcare_2_claimsinquiry : 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 Claims inquiry -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 claims processing into a var -> clicking on the var var ClaimsProcessingITS = FacetsMainUI.FindControl(className : "TreeItem", title : "Claims Processing + ITS*",timeout:60); Wait(3); ClaimsProcessingITS.Click(); Wait(3); Type("{RIGHT}"); Wait(3); // populating metadata for claims inquiry into a var -> clicking on the var var ClaimsInquiryITS = FacetsMainUI.FindControl(className : "TreeItem", title : "Claims Inquiry + ITS*",timeout:60); ClaimsInquiryITS.Click(); Wait(3); Type("{ENTER}"); // find Claims Inquiry tab and press f9 FacetsMainUI.FindControl(className : "TabItem", title : "Claims Inquiry + ITS - All"); Wait(3); Type("{f9}"); Wait(3); // create variable for claims inquiry window var ClaimsInquiryWindow = FindWindow(title : "Claims Inquiry", timeout:60); // type subscriber info FacetsMainUI.FindControl(className : "Edit:Edit", title : "Subscriber ID", timeout:60); Wait(3); Type("xxxxxx",cpm:60); Wait(3); ClaimsInquiryWindow.FindControlWithXPath(xPath : "Pane:AfxWnd140/Edit:Edit").Click(); Wait(3); Type("{down}"); Wait(3); // Click run FacetsMainUI.FindControl(className : "Button:Button", title : "&Run").Click(); Wait(3); Type("Y"); // Find Claims Inquiry Results window FindWindow(title : "Claims Inquiry Results"); Wait(3); FacetsMainUI.FindControl(className : "Button:Button", title : "&OK").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:60); Wait(3); var FacetsCloseAllApplications = FindWindow(title : "Facets", processName : "ceraexe0",timeout:15); FacetsCloseAllApplications.Focus(); Wait(3); FacetsCloseAllApplications.FindControlWithXPath(xPath : "Button:Button").Click(); FacetsMainUI.FindControl(className : "Pane:MDIClient", title : "Workspace",timeout:15); Wait(3); } }