/// <summary>
 /// Implements Dispose methode of IDisposable interface.
 /// </summary>
 public void Dispose()
 {
     this.myControls        = null;
     this.myWindow          = null;
     this.mauiWindow        = null;
     this.myHtmlDoc         = null;
     this.myHtmlButton      = null;
     this.myHtmlRadioButton = null;
     this.myHtmlTextBox     = null;
     this.myHtmlControl     = null;
 }
        /// <summary>
        /// This function is for executing test case MsnInstall_ExistingUser_Medium_dontrestart.
        /// Test case Install Msn With Existing User taking Medium components and No Restart at the end.
        /// </summary>
        /// <param name="windowHandle">Window Handle.</param>
        /// <param name="connection">Connection string.</param>
        /// <param name="partner">Partner string.</param>
        /// <param name="language">Language string</param>
        /// <param name="email">Email ID required.</param>
        /// <param name="password">Password String</param>
        public void MsnInstall_ExistingUser_Medium_dontrestart(IntPtr windowHandle, string connection, string partner, string language, string email, string password)
        {
            //// OS Version
            int majorOsVersion = System.Environment.OSVersion.Version.Major;

            try
            {
                if (partner == "BC01" || partner == "Q001")
                {
                    this.myHtmlDoc    = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlButton.Click();
                    Logger.AddComment("PartnerSpecial Screen ", Logger.CommentType.Message);
                }

                if (language == "ENUS" || language == "VZ01" || language == "Q001" || language == "DELL")
                {
                    this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan", true);
                    if (this.myHtmlDoc.RawHtml.ToString().Contains("id=optLan"))
                    {
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "optLan");
                        this.myHtmlButton.Click();
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(5000);
                        }

                        this.myHtmlButton.Click();
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(5000);
                        }
                    }
                }

                Thread.Sleep(10000);
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                if (partner != "Q002" && partner != "VZ02" && partner != "BC01")
                {
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optExisting");
                    this.myHtmlRadioButton.Click();
                }
                this.myHtmlTextBox = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "SignInName");

                this.myHtmlTextBox.Text = email;
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "Password");
                this.myHtmlTextBox.Text = password;
                this.myHtmlButton       = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(5000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment("EnterEmailAddressScreen window", Logger.CommentType.Message);


                if (connection.ToLowerInvariant() == Messages_BuildSanitySmokeTool_BL.DialUp)
                {
                    this.myHtmlDoc         = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan");
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optLan");
                    this.myHtmlRadioButton.Click();
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlButton.Click();
                    Logger.AddComment("ConfigureDialupNow window", Logger.CommentType.Message);
                }

                Thread.Sleep(15000);
                this.myHtmlDoc          = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                this.myHtmlControl      = this.myControls.Get_HtmlControl(this.myHtmlDoc, "signatureName");
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "signature");
                this.myHtmlTextBox.Text = this.myHtmlControl.InnerText;
                this.myHtmlButton       = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment("Review_SignAgreement window", Logger.CommentType.Message);

                this.myHtmlDoc         = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optMinimum");
                this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optMinimum");
                this.myHtmlRadioButton.Click();
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment("SelectInstallation window", Logger.CommentType.Message);

                this.myHtmlDoc    = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment("ReadyToDownload window", Logger.CommentType.Message);

                Thread.Sleep(2000);
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", Localization.Finish[Localization.LocalizationIndex].ToString());
                Thread myThread = new Thread(new ParameterizedThreadStart(this.CloseModeldialogue));
                myThread.Start(windowHandle);
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                myThread.Join();
                Logger.AddComment("Finish_Page window", Logger.CommentType.Message);
                Logger.AddComment("Sign-Up Successful", Logger.CommentType.Pass);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        /// <summary>
        /// This function is for executing test case InstallMsnExistingUserMediumDoNotRestartTestCase.
        /// Test case for the instalation of MsnPC With Existing User taking Medium components and No Restart at the end.
        /// </summary>
        /// <param name="windowHandle">Window Handle.</param>
        /// <param name="connection">Connection string.</param>
        /// <param name="partner">Partner string.</param>
        /// <param name="language">Language string</param>
        /// <param name="email">Email ID required.</param>
        /// <param name="password">Password String</param>
        public void InstallMsnExistingUserMediumDoNotRestartTestCase(IntPtr windowHandle, string connection, string partner, string language, string email, string password)
        {
            //// OS Version
            int majorOsVersion = System.Environment.OSVersion.Version.Major;

            try
            {
                if (partner == "BC01" || partner == "Q001")
                {
                    //// Partner First screen.
                    this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");

                    //// Partner first screen next button.
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlButton.Click();
                    Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgPartnerScreenFound, Logger.CommentType.Message);
                }

                if (language == "ENUS" || language == "VZ01" || language == "Q001" || language == "DELL")
                {
                    //// Connect internet screen.
                    this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan", true);
                    if (this.myHtmlDoc.RawHtml.ToString().Contains("id=optLan"))
                    {
                        //// Having internet option.
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "optLan");
                        this.myHtmlButton.Click();

                        //// Next button.
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(3000);
                        }

                        this.myHtmlButton.Click();

                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(3000);
                        }
                    }
                }

                //// Enter email screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                //// Next button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                if (partner != "Q002" && partner != "VZ02" && partner != "BC01")
                {
                    //// Existing user select.
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optExisting");
                    this.myHtmlRadioButton.Click();
                }

                //// User name textbox
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "SignInName");
                this.myHtmlTextBox.Text = email;

                //// Password textbox
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "Password");
                this.myHtmlTextBox.Text = password;

                //// Next button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgEnterEmailScreenFound, Logger.CommentType.Message);

                Thread.Sleep(5000);
                if (connection.ToLowerInvariant() == MessagesBuildSanitySmokeToolBL.DialUp)
                {
                    //// Configure dialup screen.
                    this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan");

                    //// Select dialup later option.
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optLan");

                    //// Next button.
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlRadioButton.Click();
                    while (this.myHtmlButton.IsDisabled)
                    {
                        Thread.Sleep(3000);
                    }

                    this.myHtmlButton.Click();
                    Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgConfigureDialupScreenFound, Logger.CommentType.Message);
                }

                //// Review sign agreement screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");

                //// Select given signature.
                this.myHtmlControl = this.myControls.Get_HtmlControl(this.myHtmlDoc, "signatureName");

                //// type signature.
                this.myHtmlTextBox = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "signature");

                //// Next button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlTextBox.Text = this.myHtmlControl.InnerText;
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgReviewSignAggScreenFound, Logger.CommentType.Message);

                //// Installation content customization screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optMinimum");

                //// Select minimum.
                this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optMinimum");
                this.myHtmlRadioButton.Click();

                //// Next button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgCustomizeInstallationScreenFound, Logger.CommentType.Message);

                //// Ready to download screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");

                //// Next button
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgReadyToDownloadScreenFound, Logger.CommentType.Message);

                //// Finish page screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", Localization.Finish[Localization.LocalizationIndex].ToString());
                Thread myThread = new Thread(new ParameterizedThreadStart(this.CloseModeldialogue));
                myThread.Start(windowHandle);

                //// Next Button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgFinishPageScreenFound, Logger.CommentType.Message);

                myThread.Join();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpSuccessful, Logger.CommentType.Pass);
            }
            catch (MitabaseException me)
            {
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpUnsuccessful, Logger.CommentType.Fail);
#if debug
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFail + Environment.NewLine + me.Message + Environment.NewLine + "InstallMsnExistingUserMediumDoNotRestart." + Environment.NewLine + "MitabaseException");
#endif
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFail);
            }
            catch (Exception e)
            {
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpUnsuccessful, Logger.CommentType.Fail);
#if debug
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFail + Environment.NewLine + e.Message + Environment.NewLine + "InstallMsnExistingUserMediumDoNotRestart.");
#endif
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFail);
            }
        }
Example #4
0
        /// <summary>
        /// This function is for executing test case MsnInstall_NewUser_Medium_dontrestart.
        /// Test case Install Msn With New User taking Medium components and No Restart at the end.
        /// </summary>
        /// <param name="windowHandle">Window Handle.</param>
        /// <param name="connection">Connection string.</param>
        /// <param name="partner">Partner string.</param>
        /// <param name="language">Language string</param>
        /// <param name="accountDetails">List having details of user account</param>
        public void MsnInstallNewUserMediumDoNotRestart(IntPtr windowHandle, string connection, string partner, string language, List <string> accountDetails)
        {
            //// OS Version
            int majorOsVersion = System.Environment.OSVersion.Version.Major;

            try
            {
                ////Run the test for partner screen if the selected susii is of BC01 or Q001.
                if (partner == "BC01" || partner == "Q001")
                {
                    this.myHtmlDoc    = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlButton.Click();
                    Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgPartnerScreenFound, Logger.CommentType.Message);
                }

                ////Select the option that user is connected to internet in case the susii is of ENUS, VZ01, Q001 or DELL.
                if (language == "ENUS" || language == "VZ01" || language == "Q001" || language == "DELL")
                {
                    this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan", true);
                    if (this.myHtmlDoc.RawHtml.ToString().Contains("id=optLan"))
                    {
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "optLan");
                        this.myHtmlButton.Click();
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(3000);
                        }

                        this.myHtmlButton.Click();
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(3000);
                        }
                    }
                }

                ////Select the option for creating a new user in EnterEmailAddressScreen window.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                if (partner != "Q002" && partner != "VZ02" && partner != "BC01")
                {
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optNew");
                    this.myHtmlRadioButton.Click();
                }

                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                Thread.Sleep(3000);
                Thread emailThread = new Thread(new ParameterizedThreadStart(this.CloseEmailModeldialogue));
                emailThread.Start(windowHandle);
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgEnterEmailScreenFound, Logger.CommentType.Message);

                //// Select Dialup plan and goes through the ConfigureDialupNow window if the selected connection is Dialup.
                Thread.Sleep(20000);
                if (connection.ToLowerInvariant() == MessagesBuildSanitySmokeToolBL.DialUp)
                {
                    this.myHtmlDoc     = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "lbl_37B02038-553E-4691-AC3C-290EFE009E53");
                    this.myHtmlControl = this.myControls.Get_HtmlControl(this.myHtmlDoc, "lbl_37B02038-553E-4691-AC3C-290EFE009E53");
                    this.myHtmlControl.Click();
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    while (this.myHtmlButton.IsDisabled)
                    {
                        Thread.Sleep(3000);
                    }

                    this.myHtmlButton.Click();
                    Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSelectMsnPlanWindowFound, Logger.CommentType.Message);

                    this.myHtmlDoc         = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optLan");
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optLan");
                    this.myHtmlRadioButton.Click();
                    this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                    this.myHtmlButton.Click();
                    Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgConfigureDialupScreenFound, Logger.CommentType.Message);
                }
                else
                {
                    //// Select Premium Plan
                    try
                    {
                        this.myHtmlDoc     = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "lbl_DD248418-D8DA-4D11-BD71-0A0ABE8D763C");
                        this.myHtmlControl = this.myControls.Get_HtmlControl(this.myHtmlDoc, "lbl_DD248418-D8DA-4D11-BD71-0A0ABE8D763C");
                        this.myHtmlControl.Click();
                        this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                        while (this.myHtmlButton.IsDisabled)
                        {
                            Thread.Sleep(3000);
                        }

                        this.myHtmlButton.Click();
                        Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSelectMsnPlanWindowFound, Logger.CommentType.Message);
                    }
                    catch (Exception)
                    {
                        ////do nothing
                    }
                }

                ////Enter the user details in Create your e-mail address and password window.
                Thread.Sleep(10000);
                this.myHtmlDoc                     = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "FirstName");
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "FirstName");
                this.myHtmlTextBox.Text            = accountDetails[0];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "LastName");
                this.myHtmlTextBox.Text            = accountDetails[1];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "MemberName");
                this.myHtmlTextBox.Text            = accountDetails[2];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "Password");
                this.myHtmlTextBox.Text            = accountDetails[3];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "ConfirmedPassword");
                this.myHtmlTextBox.Text            = accountDetails[4];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "SecretAnswer");
                this.myHtmlTextBox.Text            = accountDetails[5];
                this.myHtmlSelectBox               = this.myControls.Get_HtmlSelectBox(this.myHtmlDoc, "BirthDateMonth");
                this.myHtmlSelectBox.SelectedIndex = Convert.ToInt32(accountDetails[6]);
                this.myHtmlSelectBox               = this.myControls.Get_HtmlSelectBox(this.myHtmlDoc, "BirthDateDay");
                this.myHtmlSelectBox.SelectedIndex = Convert.ToInt32(accountDetails[7]);
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "BirthDateYear");
                this.myHtmlTextBox.Text            = accountDetails[8];
                this.myHtmlButton                  = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();

                ////If the new user being created already exists, then take the first user from the choises given.
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "suggestedNamesText", true);
                Thread.Sleep(10000);
                if (this.myHtmlDoc.RawHtml.ToString().Contains("suggestedNamesText"))
                {
                    string strPage    = this.myHtmlDoc.RawHtml.ToString();
                    int    index      = strPage.IndexOf("suggestedNamesText");
                    int    inputIndex = strPage.IndexOf("INPUT", index);
                    int    tabIndex   = strPage.IndexOf("tabIndex", index);
                    string rbname     = strPage.Substring(inputIndex + 9, (tabIndex - (inputIndex + 10)));
                    this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, rbname);
                    this.myHtmlRadioButton.Click();
                    this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "Password");
                    this.myHtmlTextBox.Text = accountDetails[3];
                    this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "ConfirmedPassword");
                    this.myHtmlTextBox.Text = accountDetails[4];
                    accountDetails[2]       = rbname;
                    this.myHtmlButton.Click();
                    Thread.Sleep(5000);
                }

                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgCreteEmailAddScreenFound, Logger.CommentType.Message);

                ////Goes through Review_SignAgreement Window.
                this.myHtmlDoc          = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "signatureName");
                this.myHtmlControl      = this.myControls.Get_HtmlControl(this.myHtmlDoc, "signatureName");
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "signature");
                this.myHtmlTextBox.Text = this.myHtmlControl.InnerText;
                this.myHtmlButton       = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgReviewSignAggScreenFound, Logger.CommentType.Message);

                ////Fills the credit card details in Provide your credit card information window.
                this.myHtmlDoc       = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "CardType");
                this.myHtmlSelectBox = this.myControls.Get_HtmlSelectBox(this.myHtmlDoc, "CardType");
                this.myHtmlSelectBox.SelectedIndex = Convert.ToInt32(accountDetails[9]);
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "AccountNumber");
                this.myHtmlTextBox.Text            = accountDetails[10];
                this.myHtmlTextBox                 = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "CVV");
                this.myHtmlTextBox.Text            = accountDetails[11];
                this.myHtmlSelectBox               = this.myControls.Get_HtmlSelectBox(this.myHtmlDoc, "ExpirationMonth");
                this.myHtmlSelectBox.SelectedIndex = Convert.ToInt32(accountDetails[12]);
                this.myHtmlSelectBox               = this.myControls.Get_HtmlSelectBox(this.myHtmlDoc, "ExpirationYear");
                this.myHtmlSelectBox.SelectedIndex = Convert.ToInt32(accountDetails[13]);
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgProvideCreditCardInfoWindowFound, Logger.CommentType.Message);

                ////Fills the billing address in Provide your billing address window.
                Thread.Sleep(10000);
                this.myHtmlDoc          = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "Street1");
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "Street1");
                this.myHtmlTextBox.Text = accountDetails[14];
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "City");
                this.myHtmlTextBox.Text = accountDetails[15];
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "State");
                this.myHtmlTextBox.Text = accountDetails[16];
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "PostalCode");
                this.myHtmlTextBox.Text = accountDetails[17];
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "PhonePrefix");
                this.myHtmlTextBox.Text = accountDetails[18];
                this.myHtmlTextBox      = this.myControls.Get_HtmlTextBox(this.myHtmlDoc, "PhoneNumber");
                this.myHtmlTextBox.Text = accountDetails[19];
                this.myHtmlButton       = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgProvideBillAddWindowFound, Logger.CommentType.Message);

                try
                {
                    this.mauiWindow  = this.myWindow.Get_WindowToSpecificControl(windowHandle, "AutomationId", "2354");
                    this.mauiControl = this.myControls.Get_MauiControl(this.mauiWindow);
                    if (this.mauiControl != null)
                    {
                        this.mauiControl.Click();
                        throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.CreditCardNumberNotUnique);
                    }
                }
                catch (BuildSanityBusinessLogicException bx)
                {
                    Logger.AddComment(bx.Message, Logger.CommentType.Message);
                    throw bx;
                }
                catch (Exception e)
                {
                    //// Do Nothing
                }

                Thread.Sleep(10000);
                this.myHtmlDoc    = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                ////New user is created.
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgNewUserSignupCompWinFound, Logger.CommentType.Message);

                //// Select the type of Installation
                this.myHtmlDoc         = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "optMinimum");
                this.myHtmlRadioButton = this.myControls.Get_HtmlRadioButton(this.myHtmlDoc, "optMinimum");
                this.myHtmlRadioButton.Click();
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgCustomizeInstallationScreenFound, Logger.CommentType.Message);

                ////Installs Premium Client
                this.myHtmlDoc    = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", "idButtonNext");
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgReadyToDownloadScreenFound, Logger.CommentType.Message);

                //// Finish page screen.
                this.myHtmlDoc = this.myWindow.Get_HtmlDocumentToWindow(windowHandle, "ClassName", "Internet Explorer_Server", Localization.Finish[Localization.LocalizationIndex].ToString());
                Thread myThread = new Thread(new ParameterizedThreadStart(this.CloseModeldialogue));
                myThread.Start(windowHandle);

                //// Next Button.
                this.myHtmlButton = this.myControls.Get_HtmlButton(this.myHtmlDoc, "idButtonNext");
                while (this.myHtmlButton.IsDisabled)
                {
                    Thread.Sleep(3000);
                }

                this.myHtmlButton.Click();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgFinishPageScreenFound, Logger.CommentType.Message);

                myThread.Join();
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpSuccessful, Logger.CommentType.Pass);
            }
            catch (MitabaseException me)
            {
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpUnsuccessful, Logger.CommentType.Fail);
#if debug
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFailNewUser + Environment.NewLine + me.Message + Environment.NewLine + "InstallMsnExistingUserMediumDoNotRestart." + Environment.NewLine + "MitabaseException");
#endif
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFailNewUser);
            }
            catch (Exception e)
            {
                Logger.AddComment(MessagesBuildSanitySmokeToolBL.MsgSignUpUnsuccessful, Logger.CommentType.Fail);
#if debug
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFailNewUser + Environment.NewLine + e.Message + Environment.NewLine + "InstallMsnExistingUserMediumDoNotRestart.");
#endif
                throw new BuildSanityBusinessLogicException(BuildSanityBLExMessages.InstallationFailNewUser);
            }
        }