public static void NavigateToFolder(this AutomationRunner testRunner, string libraryRowItemName) { testRunner.EnsureContentMenuOpen(); testRunner.EnsureFoldersVisible(); switch (libraryRowItemName) { case "Calibration Parts Row Item Collection": case "Cloud Library Row Item Collection": case "Print Queue Row Item Collection": case "Local Library Row Item Collection": if (!testRunner.NameExists("Library Row Item Collection")) { testRunner.ClickByName("Bread Crumb Button Home"); testRunner.Delay(); } // If visible, navigate into Libraries container before opening target if (testRunner.NameExists("Library Row Item Collection")) { testRunner.DoubleClickByName("Library Row Item Collection"); } break; } testRunner.DoubleClickByName(libraryRowItemName); }