public SelectFacility(Application application, string facilityName) { WindowTools windowTools = new WindowTools(); Window window = windowTools.GetWindow(application, "Select Facility"); RadioButton facilityRadioButton = windowTools.GetRadioButton(window, SearchCriteria.ByAutomationId("facilityRadioButton")); windowTools.ClickIUIItem(facilityRadioButton); ListBox facilityFilter = windowTools.GetListBox(window, SearchCriteria.ByAutomationId("ListBox")); windowTools.SelectListBoxItem(facilityFilter, "Any"); ListView facilityList = windowTools.GetListView(window, SearchCriteria.ByAutomationId("listView")); ListViewRow row = windowTools.SelectListViewRowName(facilityList, facilityName); windowTools.DoubleClickIUItem(row); }