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 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 }); }
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 }); }
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 }); }
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 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 }); }