Exemple #1
0
        public static bool DoEnable(ListItem item, bool isEnable)
        {
            bool isActionSucceeded = false;

            if (isEnable)
            {
                // do enable
                item.Click(System.Windows.Forms.MouseButtons.Right);
                Delay.Milliseconds(1000);
                // select disable
                Ranorex.MenuItem menuitem = repo.ContextMenu.Self.FindSingle <Ranorex.MenuItem>("./?/?/menuitem[@accessiblename='Enable']");
                menuitem.Click();
                int i = 0;
                do
                {
                    Delay.Milliseconds(3000);
                    Text   text   = item.FindSingle <Text>("./text[@childindex=3]");
                    string status = text.TextValue;
                    if (status != "Not connected" && status != "Identifing..." && status != "Disabled" && status != "Network cable unplugged" && status != "Unidentified network")
                    {
                        isActionSucceeded = true;
                        break;
                    }
                    i++;
                }while(i < 3);
            }
            else
            {
                // do disable
                item.Click(System.Windows.Forms.MouseButtons.Right);
                Delay.Milliseconds(1000);
                // select disable
                Ranorex.MenuItem menuitem = repo.ContextMenu.Self.FindSingle <Ranorex.MenuItem>("./?/?/menuitem[@accessiblename='Disable']");
                menuitem.Click();
                int i = 0;
                do
                {
                    Delay.Milliseconds(3000);
                    Text   text   = item.FindSingle <Text>("./text[@childindex=3]");
                    string status = text.TextValue;
                    if (status == "Disabled")
                    {
                        isActionSucceeded = true;
                        break;
                    }
                    i++;
                }while(i < 3);
            }
            return(isActionSucceeded);
        }
        /// <summary>
        /// Start flow
        /// </summary>
        /// <returns><br>True: if call worked fine</br>
        /// <br>False: if an error occurred</br></returns>
        public bool Run()
        {
            if ((new OpenProjectNew()).ViaMenu())
            {
                ListItem listItem = (new ProjectBrowserElements()).EmptyProject;
                if (listItem != null && listItem.Enabled)
                {
                    var center = new Location(
                        listItem.ScreenRectangle.Size.Width / 2,
                        listItem.ScreenRectangle.Size.Height / 2);
                    listItem.Click(center);

                    Button button = (new ProjectBrowserElements()).Open;
                    if (button != null && button.Enabled)
                    {
                        button.Click(DefaultValues.locDefaultLocation);
                        return(true);
                    }

                    EH.PCPS.TestAutomation.Common.Tools.Log.Error(
                        LogInfo.Namespace(MethodBase.GetCurrentMethod()),
                        "Button [ProjectBrowserElements.Open] was not found.");
                    return(false);
                }

                EH.PCPS.TestAutomation.Common.Tools.Log.Error(
                    LogInfo.Namespace(MethodBase.GetCurrentMethod()),
                    "List item [ProjectBrowserElements.EmptyProject] was not found.");
                return(false);
            }

            EH.PCPS.TestAutomation.Common.Tools.Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), "Project browser could not be opened");
            return(false);
        }
        /// <summary>
        /// Select compare mode
        /// </summary>
        /// <param name="index">
        /// Entry to select, starting with 0
        /// </param>
        /// <returns>
        /// <br>True: If call worked fine</br>
        ///     <br>False: If an error occurred</br>
        /// </returns>
        public bool SelectMode(int index)
        {
            bool success = false;

            try
            {
                Button button = (new SelectionElements()).ButtonMode;
                if (button != null && button.Enabled)
                {
                    Mouse.MoveTo(button, 500);
                    button.Click();
                }

                IList <ListItem> modeListItems = (new SelectionElements()).ListItemsMode;
                if (modeListItems != null && modeListItems.Count > 0)
                {
                    ListItem listItem = modeListItems[index];
                    listItem.Click();
                    success = true;
                }

                return(success);
            }
            catch (Exception exception)
            {
                Log.Error(LogInfo.Namespace(MethodBase.GetCurrentMethod()), exception.Message);
                return(false);
            }
        }
        public override void Action()
        {
            WinFormComboBox cb = (WinFormComboBox)control;

            ListItem listItem = cb.Items.Where(
                item => item.NameMatches(criteria) ||
                item.Name.Replace(" ", "").Contains(criteria) ||
                item.Name.Replace(" ", "") == criteria
                ).FirstOrDefault();


            if (actionType == ActionType.click)
            {
                listItem.Click();
                return;
            }

            if (actionType == ActionType.doubleClick)
            {
                listItem.DoubleClick();
                return;
            }

            if (actionType == ActionType.select)
            {
                listItem.Select();
                return;
            }


            throw new Exception($"Control Doesn't Accept Action Type {actionType}");
        }
        /// <summary>
        /// Searches and selects item in a combo box, scrolls if necessary
        /// </summary>
        /// <param name="listItems">
        /// list with all combo box values
        /// </param>
        /// <param name="value">
        /// string with value which should be set
        /// </param>
        /// <returns>
        /// true: if value was found and selected
        ///     false: if an error occurred
        /// </returns>
        private bool FindAndSelectValueInComboBox(IList<ListItem> listItems, string value)
        {
            bool isFound = false;
            ListItem listItem = null;
            int counter = 0;

            // check if a listitem matches search string
            foreach (ListItem item in listItems)
            {
                string itemText = item.Text;

                // Replacing every non ASCII character from a combo box entry with a space. This is currently needed for the Prowirl 200 HA Rev 3 
                itemText = Regex.Replace(itemText, @"[^\u0000-\u007F]", " ");
                if (itemText == value)
                {
                    isFound = true;
                    listItem = item;
                    break;
                }
            }

            if (isFound == false)
            {
                return false;
            }

            Mouse.MoveTo(listItem);
            while (listItem.Selected == false)
            {
                // scrolling part                
                if (counter > listItems.Count)
                {
                    // list end, value not found, srolling up now
                    Keyboard.Press(Keys.Up);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
                else
                {
                    if (counter > listItems.Count * 2)
                    {
                        // searched entire list, parameter not found
                        break;
                    }

                    // scrolling down
                    Keyboard.Press(Keys.Down);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
            }

            listItem.Click(DefaultValues.locDefaultLocation);

            // Apply the changes
            Keyboard.Press(Keys.Enter);
            return true;
        }
Exemple #6
0
        /// <summary>
        ///     Searches and selects item in a combo box, scrolls if necessary
        /// </summary>
        /// <param name="listItems">list with all combo box values</param>
        /// <param name="value">string with value which should be set</param>
        /// <returns>
        ///     true: if value was found and selected
        ///     false: if an error occurred
        /// </returns>
        private bool FindAndSelectValueInComboBox(IList <ListItem> listItems, string value)
        {
            bool     isFound  = false;
            ListItem listItem = null;
            int      counter  = 0;
            var      pattern  = new Regex(@"\W");

            // check if a list item matches search string
            foreach (ListItem item in listItems)
            {
                string actualItem = pattern.Replace(item.Text, string.Empty).ToLower();
                string itemToSet  = pattern.Replace(value, string.Empty).ToLower();

                if (actualItem != itemToSet)
                {
                    continue;
                }

                listItem = item;
                isFound  = true;
                break;
            }

            if (isFound == false)
            {
                return(false);
            }

            Mouse.MoveTo(listItem);
            while (listItem.Selected == false)
            {
                // scrolling part
                if (counter > listItems.Count)
                {
                    // list end, value not found, scrolling up now
                    Keyboard.Press(Keys.Up);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
                else
                {
                    if (counter > listItems.Count * 2)
                    {
                        // searched entire list, parameter not found
                        break;
                    }

                    // scrolling down
                    Keyboard.Press(Keys.Down);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
            }

            listItem.Click(DefaultValues.locDefaultLocation);
            return(true);
        }
Exemple #7
0
            public void SelectItem(string item)
            {
                Click();
                SpillmanLogin loginForm      = new SpillmanLogin(LoginFormXPath);
                ListItem      selectListItem = loginForm.GetListItem(item);

                selectListItem.Focus();
                selectListItem.Click();
            }
Exemple #8
0
        /// <summary>
        ///     Searches and selects item in a combo box, scrolls if necessary
        /// </summary>
        /// <param name="listItems">list with all combo box values</param>
        /// <param name="value">string with value which should be set</param>
        /// <returns>
        ///     true: if value was found and selected
        ///     false: if an error occurred
        /// </returns>
        private bool FindAndSelectValueInComboBox(IList <ListItem> listItems, string value)
        {
            bool     isFound  = false;
            ListItem listItem = null;
            int      counter  = 0;

            // check if a listitem matches search string
            foreach (ListItem item in listItems)
            {
                string itemText = item.Text;
                if (itemText == value)
                {
                    isFound  = true;
                    listItem = item;
                    break;
                }
            }

            if (isFound == false)
            {
                return(false);
            }

            Mouse.MoveTo(listItem);
            while (listItem.Selected == false)
            {
                // scrolling part
                if (counter > listItems.Count)
                {
                    // list end, value not found, srolling up now
                    Keyboard.Press(Keys.Up);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
                else
                {
                    if (counter > listItems.Count * 2)
                    {
                        // searched entire list, parameter not found
                        break;
                    }

                    // scrolling down
                    Keyboard.Press(Keys.Down);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
            }

            listItem.Click(DefaultValues.locDefaultLocation);

            // Apply the changes
            Keyboard.Press(Keys.Enter);
            return(true);
        }
Exemple #9
0
        private void SelectValueFromList(string itemToSelect, ListBox list)
        {
            ListItems items = list.Items;

            ListItem item = items.Find(
                x => x.GetElement(SearchCriteria.ByControlType(ControlType.Text)).
                GetCurrentPropertyValue(AutomationElement.NameProperty).Equals(itemToSelect));

            //Assert.NotNull(item, "The item {0} is not found on the list {1} items found.", itemToSelect, items.Count);
            item.Click();
        }
Exemple #10
0
        /// <summary>
        ///     Searches and selects item in a combo box, scrolls if necessary
        /// </summary>
        /// <param name="listItems">list with all combo box values</param>
        /// <param name="value">string with value which should be set</param>
        /// <returns>
        ///     true: if value was found and selected
        ///     false: if an error occurred
        /// </returns>
        private bool FindAndSelectValueInComboBox(IList <ListItem> listItems, string value)
        {
            bool     isFound  = false;
            ListItem listItem = null;
            int      counter  = 0;

            // Check if a listitem contains search string
            foreach (ListItem item in listItems)
            {
                if (!item.Text.Contains(value))
                {
                    continue;
                }

                listItem = item;
                isFound  = true;
                break;
            }

            if (isFound == false)
            {
                return(false);
            }

            //Mouse.MoveTo(listItem);
            while (listItem.Selected == false)
            {
                // scrolling part
                if (counter > listItems.Count)
                {
                    // list end, value not found, srolling up now
                    Keyboard.Press(Keys.Up);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
                else
                {
                    if (counter > (listItems.Count * 2))
                    {
                        // searched entire list, parameter not found
                        break;
                    }

                    // scrolling down
                    Keyboard.Press(Keys.Down);
                    Mouse.MoveTo(listItem);
                    counter++;
                }
            }

            listItem.Click(DefaultValues.locDefaultLocation);
            return(true);
        }
        public void SelectProperty(string name)
        {
            ListBox propertyList = window.Get <ListBox>(SearchCriteria.ByAutomationId("propertyList"));

            Assert.IsNotNull(propertyList);
            Assert.IsTrue(propertyList.Visible);

            ListItem item = propertyList.Item(name);

            Assert.IsNotNull(item);
            item.Click();
        }
Exemple #12
0
        static void Main(string[] args)
        {
            //Extract MSI File
            var commandLine = @"D:\WORK AREA\M2 Test Automation\Trials\Build 3.0.0.14\Config\setup.exe";
            var parameters  = @"/s /x /b""setupfiles"" /v"" /qn""";

            Process.Start(commandLine, parameters);

            //Launch the installer
            Thread.Sleep(TimeSpan.FromSeconds(5));
            var         appPath = System.IO.Directory.GetCurrentDirectory() + @"\setupfiles\CareFusion - Alaris System Tracking Application Configuration v3.0.msi";
            Application app     = Application.Launch(appPath);

            //Get Window and click Next
            Thread.Sleep(TimeSpan.FromSeconds(5));
            Window mainWindow = app.GetWindow("CareFusion - Alaris System Tracking Application Configuration v3.0");

            Thread.Sleep(TimeSpan.FromSeconds(15));
            mainWindow = app.GetWindow("CareFusion - Alaris System Tracking Application Configuration v3.0");
            Button NextButton = mainWindow.Get <Button>(SearchCriteria.ByAutomationId("2495"));

            NextButton.Click();

            //Select Existing SQL instance and click Next
            Thread.Sleep(TimeSpan.FromSeconds(2));
            mainWindow = app.GetWindow("CareFusion - Alaris System Tracking Application Configuration v3.0 - InstallShield Wizard");

            Thread.Sleep(TimeSpan.FromSeconds(2));
            RadioButton ExistingDBRadioButton = mainWindow.Get <RadioButton>(SearchCriteria.ByAutomationId("2602"));

            ExistingDBRadioButton.Click();

            NextButton = mainWindow.Get <Button>(SearchCriteria.ByText("Next >"));
            NextButton.Click();

            //Browser for local SQL instance
            Thread.Sleep(TimeSpan.FromSeconds(2));
            mainWindow = app.GetWindow("CareFusion - Alaris System Tracking Application Configuration v3.0");
            Button BrowseButton = mainWindow.Get <Button>(SearchCriteria.ByAutomationId("2613"));

            BrowseButton.Click();

            Window serverWindow = mainWindow.ModalWindow("CareFusion - Alaris System Tracking Application Configuration v3.0");

            ListBox  list   = serverWindow.Get <ListBox>(SearchCriteria.ByAutomationId("4014"));
            ListItem server = list.Item("(local)");

            server.Click();


            //Button nextButton = (Button)mainWindow.Get(sc);
            //nextButton.Click();
        }
Exemple #13
0
//		public static void ConnectDMRepo()
//		{
//			try
//			{
//				repo.Application.File.Click();
//				Reports.ReportLog("Clicked File Menu Successfully ! ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//				repo.SQLdmDesktopClient.ConnectToSQLDMRepository.Click();
//				Reports.ReportLog("Clicked Menuitem ConnectToSQLDMRepository Successfully ! ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//				Ranorex.ComboBox combobox = repo.RepositoryConnectionDialog.AuthenticationDropDownList;
//				combobox.Click();
//				ListItem lst_userItem = combobox.FindSingle<ListItem>("/list/listitem[@text='SQL Server Authentication']");
//				lst_userItem.Focus();
//				lst_userItem.Click();
//				Reports.ReportLog("SQL Server Authentication Selected ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//				repo.RepositoryConnectionDialog.Username.PressKeys(Constants.SqlSystemUser);
//				Reports.ReportLog("Username : "******"Entered Successfully  " , Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//
//				repo.RepositoryConnectionDialog.Password.PressKeys(Constants.SqlSystemUserPassword);
//				Reports.ReportLog("Passsword Entered Successfully  " , Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//				repo.RepositoryConnectionDialog.ConnectButton.ClickThis();
//				Reports.ReportLog("Clicked Connect Button Successfully !  " , Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//
//				if(repo.Application.CaptionText.TextValue.Contains(Constants.SQLdmRepository))
//					Reports.ReportLog("Connected to SQLdmRepository Successfully !  "   , Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
//				else
//				{
//					Reports.ReportLog("Failed to connect to SQLdmRepository " , Reports.SQLdmReportLevel.Fail, null, Configuration.Config.TestCaseName);
//					throw new Exception("Failed to connect to SQLdmRepository ");
//				}
//			}
//			catch(Exception ex)
//			{
//				throw new Exception("Failed : ConnectDMRepo : " + ex.Message);
//			}
//		}

        public static void ConnectDMRepo(string userType)
        {
            try
            {
                repo.Application.File.Click();
                Reports.ReportLog("Clicked File Menu Successfully ! ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
                repo.SQLdmDesktopClient.ConnectToSQLDMRepository.Click();
                Reports.ReportLog("Clicked Menuitem ConnectToSQLDMRepository Successfully ! ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);

                if (userType.Equals(Constants.SqlUser))
                {
                    Ranorex.ComboBox combobox = repo.RepositoryConnectionDialog.AuthenticationDropDownList;
                    combobox.Click();
                    ListItem lst_userItem = combobox.FindSingle <ListItem>("/list/listitem[@text='SQL Server Authentication']");
                    lst_userItem.Focus();
                    lst_userItem.Click();
                    Reports.ReportLog("SQL Server Authentication Selected ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
                    repo.RepositoryConnectionDialog.Username.PressKeys(Constants.NewSqlUser);
                    Reports.ReportLog("Username : "******"Entered Successfully  ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);

                    repo.RepositoryConnectionDialog.Password.PressKeys(Constants.NewSqlUserPassword);
                    Reports.ReportLog("Passsword Entered Successfully  ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
                }
                else
                {
                    Ranorex.ComboBox combobox = repo.RepositoryConnectionDialog.AuthenticationDropDownList;
                    combobox.Click();
                    ListItem lst_userItem = combobox.FindSingle <ListItem>("/list/listitem[@text='Windows Authentication']");
                    lst_userItem.Focus();
                    lst_userItem.Click();
                    Reports.ReportLog("Windows Authentication Selected ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
                }

                repo.RepositoryConnectionDialog.ConnectButton.ClickThis();
                Reports.ReportLog("Clicked Connect Button Successfully !  ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);

                if (repo.Application.CaptionText.TextValue.Contains(Constants.SQLdmRepository))
                {
                    Reports.ReportLog("Connected to SQLdmRepository Successfully !  ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
                }
                else
                {
                    Reports.ReportLog("Failed to connect to SQLdmRepository ", Reports.SQLdmReportLevel.Fail, null, Configuration.Config.TestCaseName);
                    throw new Exception("Failed to connect to SQLdmRepository ");
                }
                Thread.Sleep(30000);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed : ConnectDMRepo : " + ex.Message);
            }
        }
Exemple #14
0
 public static void SelectSqlAuthentication()
 {
     try
     {
         Ranorex.ComboBox combobox = repo.AddPermissionWizard.ComboBoxUserPageCmbBxAuthentication;
         combobox.Click();
         ListItem lst_userItem = combobox.FindSingle <ListItem>("/list/listitem[@text='SQL Server Authentication']");
         lst_userItem.Focus();
         lst_userItem.Click();
         Reports.ReportLog("SQL Server Authentication Selected ", Reports.SQLdmReportLevel.Success, null, Configuration.Config.TestCaseName);
     }
     catch (Exception ex)
     {
         throw new Exception("Failed : SelectAuthenticationType : " + ex.Message);
     }
 }
        public void CheckLeftMenuItems()
        {
            CultureInfo ci = Utils.GetOSLanguage();

            // get leftmenu item name
            IList <ListItem> listitems = repo.DHSMainWindow.LeftMenuListbox.Find <ListItem>("./listitem");

            XmlTextReader reader = new XmlTextReader(Directory.GetCurrentDirectory() + @"\Resources\DHSTranslate.xml");

            // If the node has value
            reader.Read();
            reader.ReadToFollowing("language");
            do
            {
                if (reader.GetAttribute("code") == ci.Name)
                {
                    reader.ReadToDescendant("leftmenu");
                    reader.ReadToDescendant("element");
                    int i = 0;
                    do
                    {
                        string expectmenutext = reader.ReadString();
                        // get actual menu item text
                        ListItem menuitem       = listitems[i];
                        Text     menutext       = menuitem.FindSingle("./text");
                        string   actualmenutext = menutext.TextValue;
                        try{
                            Validate.AreEqual(actualmenutext, expectmenutext, "Check if Left menu with text \"" + actualmenutext + "\" is in " + ci.DisplayName + " as expected: \"" + expectmenutext + "\"");
                            menuitem.Click();
                            Delay.Milliseconds(1000);
                            repo.DHSMainWindow.ClosePanelImage.Click();
                            Delay.Milliseconds(1000);
                        }
                        catch (RanorexException) {
                        }
                        i++;
                    }while(reader.ReadToNextSibling("element"));
                    break;
                }
            } while (reader.ReadToNextSibling("language"));
        }
Exemple #16
0
        public void CheckDigitalSignature()
        {
            string path     = @"C:\Program Files\Dell\Dell Help & Support";
            string fileName = @"Microsoft.Win32.TaskScheduler.dll";

            // press Window E open file explorer
            Ranorex.Keyboard.Press("{LWin down}e{LWin up}");
            Delay.Milliseconds(1000);

            System.Diagnostics.Debug.WriteLine(path);
            // split path into item
            string[]     dir               = path.Split('\\');
            Ranorex.Form fileExplorer      = null;
            string       fileExplorerXpath = null;

            for (int i = 0; i < dir.Count(); i++)
            {
                System.Diagnostics.Debug.WriteLine(dir[i]);
                if (i == 0)
                {
                    repo.Explorer.ToolBar1001.Click();
                    Ranorex.Keyboard.Press(dir[i]);
                    Ranorex.Keyboard.Press("{Return}");
                    fileExplorerXpath = "/form[@processname='explorer' and @title='" + "OS (" + dir[i] + ")']";
                }
                else
                {
                    // find file explorer
                    fileExplorer = null;
                    Ranorex.Core.Element element = Host.Local.FindSingle(fileExplorerXpath, 5000);
                    if (element != null)
                    {
                        fileExplorer = element;
                    }
                    // check if folder exist
                    string folderXpath = "element[@class='ShellTabWindowClass']//element[@instance='1']/container[@caption='ShellView']/list/listitem[@text='" + dir[i] + "']";
                    try{
                        ListItem folder = fileExplorer.FindSingle <ListItem>(folderXpath, 5000);
                        folder.DoubleClick();
                        Delay.Milliseconds(500);
                    }
                    catch (ElementNotFoundException ex) {
                        // report fail
                        Report.Log(ReportLevel.Failure, "Folder not found: " + path);
                        throw ex;
                    }
                    fileExplorerXpath = "/form[@processname='explorer' and @title='" + dir[i] + "']";
                }
            }

            // select file Microsoft.Win32.TaskScheduler.dll, open property
            Ranorex.Keyboard.Press("Microsoft");
            // check if folder exist
            string   fileXpath = "element[@class='ShellTabWindowClass']//element[@instance='1']/container[@caption='ShellView']/list/listitem[@text='" + fileName + "']";
            ListItem file      = fileExplorer.FindSingle <ListItem>(fileXpath, 5000);

            file.Click();
            Delay.Milliseconds(200);
            // open property
            Ranorex.Keyboard.Press("{RMenu down}{Return}{RMenu up}");
            Delay.Milliseconds(200);

            repo.MicrosoftWin32TaskSchedulerDllProper.DigitalSignatures.Click();
            Delay.Milliseconds(200);

            Cell nameOfSigner = repo.MicrosoftWin32TaskSchedulerDllProper.Self.FindSingle <Cell>(@"container[@caption='Digital Signatures']//cell[@text='Name of signer:']/following-sibling::cell[][1]");

            nameOfSigner.Click();

            string expectedNameOfSigner = "Dell Inc";
            string actualNameOfSigner   = nameOfSigner.Text;

            Report.Info("Launch SHD install location and check Digital Signaltures:");
            Report.Log((actualNameOfSigner == expectedNameOfSigner)?ReportLevel.Success:ReportLevel.Failure, "Check name of Signer actual= " + actualNameOfSigner + ", expected = " + expectedNameOfSigner);

            repo.MicrosoftWin32TaskSchedulerDllProper.Close.Click();
            Delay.Milliseconds(1000);

            // close file explorer
            repo.Explorer.Close.Click();
        }