Пример #1
0
        public void AddEditDeleteStoppord()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Stoppord and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstyring", "Stoppord stikkordsindeksering", "Stoppord (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Word", "AutomationTesting");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AutomationTesting", "Word", "EditAutomationTesting", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #2
0
        public void AddEditDeleteReguleringsformal()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Reguleringsformål and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Plansak", "Reguleringsformål", "Reguleringsformål (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Code", "10");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyAccessCodeExist("10");
                adminPage.EditDescription("10", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #3
0
        public void AddEditDeleteSkjematyper()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Fraser and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Skjematyper", "Skjematyper (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Schema name", "Name 1000");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SetTextBox("Schema template", "Automation Schema template");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("Automation Testing");
                adminPage.EditDescription("Automation Testing", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #4
0
        public void AddEditDeleteLovForskrift()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Lov/forskrift - presendes and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstyring", "Lov/forskrift - presendes", "Lov/forskrift (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Shortname", "AT");
                adminPage.SetTextBox("Law/requirements", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Law/requirements", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #5
0
        public void AddEditDeleteGebyrtyper()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                var time        = DateTime.Now; //12.02.2020 07:04:05   4:25 5:00
                string fromDate = time.ToString("dd.MM.yyyy");

                #region Navigate to Vedtakstyper and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Byggesak", "Gebyrtyper", "Gebyrtyper (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Description", "Automation_Testing");
                adminPage.SetTextBox("Cost", "1000");
                adminPage.SetTextBox("From date", fromDate);
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("Automation_Testing", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #6
0
        public void AddEditDeleteStyreRadogutvalg()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Change Role to Secretary of Boards - Eng
                DashboardPage dashboardPage = DashboardPage.Connect(driver);
                CommonMethods.PlayWait(2000);
                dashboardPage.ChangeRole(RolesInApplication.SecretaryOfTheBoard);
                #endregion

                #region Navigate to Styre, råd og utvalg and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Utvalgsbehandling", "Styre, råd og utvalg", "Styre, råd og utvalg (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Board name", "Automation Testing");
                adminPage.SetTextBox("Board meetingcode", "AT");
                adminPage.SelectHtmlComboBox("Adm.unit", "Adm.enhet B2");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Board name", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #7
0
        public void AddEditDeleteRoll()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Rolle and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Brukeradministrasjon/tilgangsstyring", "Rolle", "Rolle (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Rolename", "AT");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AT", "Description", "Edit Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #8
0
        public void AddEditDeleteTypeordningsprinsipp()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Bortsettingskoder and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstruktur");
                adminPage.NavigateToMenuItem("Type ordningsprinsipp", "Type ordningsprinsipp");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Type order principles", "AT");
                adminPage.SetTextBox("Description", "Automation_Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #9
0
        public void AddEditDeleteArbeidsflytmaler()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Change Role to Secretary of Boards - Eng
                DashboardPage dashboardPage = DashboardPage.Connect(driver);
                CommonMethods.PlayWait(2000);
                dashboardPage.ChangeRole(RolesInApplication.MainRegistrar);
                #endregion

                #region Navigate to Maler (alle) and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Arbeidsflytmaler", "Maler (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SelectHtmlComboBox("Object type", "Case workflow");
                adminPage.SetTextBox("Title", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("Automation Testing");
                adminPage.EditDescription("Automation Testing", "Title", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
        public void AddEditDeleteDokumenttilknytning()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Dokumenttilknytning and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Elektronisk arkiv", "Dokumenttilknytning", "Dokumenttilknytning (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Linking code", "GD");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("GD");
                adminPage.EditDescription("GD", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #11
0
        public void AddEditDeleteLogging()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Logging and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Logging", "Logging (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SelectHtmlComboBox("Table name", "ADMINDEL");
                adminPage.SetTextBox("Text", "Automation Testing");
                adminPage.SetTextBox("Being kept", "10");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("ADMINDEL", "Text", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #12
0
        public void AddEditDeleteVarslingsform()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Varslingsform and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Varslingsform", "Varslingsform (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Code", "GDR");
                adminPage.SetTextBox("Notification type", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("GDR");
                adminPage.EditDescription("Automation Testing", "Notification type", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #13
0
        public void AddEditDeleteTilleggsattributter()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Tilleggsattributter and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Tilleggsattributter", "Tilleggsattributter (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Code", "AT");
                adminPage.SetTextBox("No.", "10");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SetTextBox("Caption", "Tilleggsattributter Captions ");
                adminPage.SelectHtmlComboBox("Field type", "Text box");
                adminPage.SelectHtmlComboBox("Type", "Note");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #14
0
        public void AddEditDeleteJournalenhet()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Journalenhet and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstruktur", "Journalenhet", "Journalenhet (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Registry management unit", "AT");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
        public void AddEditDeleteStandardverdier()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Standardverdier and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Administrativ inndeling", "Standardverdier", "Standardverdier (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SelectKendoDropdownAndAddValue("Adm. Unit", "English Department");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("English Department");
                adminPage.EditDescription("English Department", "Delimiter adm. unit", "Comma", Description.DropdownHTMLComboBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #16
0
        public void AddEditDeleteOrdningsprinsipp()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Vedtakstyper and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstruktur", "Ordningsprinsipp", "Ordningsprinsipp (Alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Principles for order values", "AT");
                adminPage.SetTextBox("Caption", "OrdiningsCaption");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
        public void AddEditDeleteKunngjoringsmater()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Kunngjøringsmåter and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Ansettelsessak", "Kunngjøringsmåter", "Kunngjøringsmåter (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Announcement method", "AT");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Description", "Edit Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #18
0
        public void AddEditDeleteArkivdeler()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Arkivdeler and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstruktur", "Arkivdeler", "Arkivdeler (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Record section", "AT");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SelectHtmlComboBox("Registry office", "Edit Automation Testing");
                adminPage.SelectHtmlComboBox("Primary organizing principle", "K-Kode fagklasse/fellesklasse bokmål");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("AT", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();


                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
        public void AddEditDeleteStillingsstatus()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Vedtakstyper and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Ansettelsessak", "Stillingsstatus", "Stillingsstatus (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Position status", "11");
                adminPage.SetTextBox("Description", "Automation_Testing");
                adminPage.Save();
                adminPage.VerifyDesctiptionIsExist("11");
                adminPage.EditDescription("11", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #20
0
        public void AddEditDeleteBehandlingsStatus()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Behandlingsstatus and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Utvalgsbehandling", "Behandlingsstatus", "Behandlingsstatus (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Status", "GD");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SetTextBox("Sort order", "1");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("GD");
                adminPage.EditDescription("GD", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #21
0
        public void AddEditDeleteAvskrivingsmate()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Avskrivingsmåte and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Arkivstyring");
                adminPage.NavigateToMenuItem("Avskrivingsmåte", "Avskrivingsmåte");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Mode of depreciation", "GDR");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("GDR");
                adminPage.EditDescription("GDR", "Description", "Edit_Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #22
0
        public void AddEditDeleteVedtakstype()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Vedtakstyper and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("Vedtaksoppfølging", "Vedtakstype", "Vedtakstyper(alle)");
                adminPage.ClickOnButton("New");
                adminPage.SetTextBox("Decision code", "AT");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.VerifyDesctiptionIsExist("AT");
                adminPage.EditDescription("AT", "Description", "Automation Testing", Description.TextBox);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }
Пример #23
0
        public void AddEditDeleteImportsentraler()
        {
            Selenium_Run((driver) =>
            {
                #region Login to Admin Module
                FrontPage.LoginToApplication(driver, ApplicationModules.Administrator.GetStringValue());
                #endregion

                #region Navigate to Importsentraler and add, save and delete
                AdminstratorPage adminPage = AdminstratorPage.Connect(driver);
                adminPage.NavigateToMenuItem("SGK-funksjoner", "Importsentral", "Importsentraler (alle)");
                adminPage.ClickOnButton("New");
                adminPage.SelectHtmlComboBox("Type", "IMAP");
                adminPage.SetTextBox("Description", "Automation Testing");
                adminPage.SelectHtmlComboBox("Person", "EPHORTE");
                adminPage.Save();
                driver.HandleErrorPopUpAndThrowErrorMessage();
                adminPage.EditDescription("Automation Testing", "Description", "Edit_Automation Testing", Description.TextBox, false);
                adminPage.ClickDeleteAndConfirmDelete();

                #region Logout from Admin Module
                LogoutPage logoutPage = LogoutPage.Connect(driver);
                logoutPage.LogoutApplication();
                #endregion
                #endregion
            });
        }