public void TestIniti() { this.TestInitialize(); this.loginPage = new LoginPage(this.Driver); this.loginPage.CurrentUserLogin(BaseConstants.TestAdminPanelUrl); this.settings = new APSettingsGlobalOptionsPage(this.Driver); this.permission = new PermissionPage(this.Driver); Thread.Sleep(1500); this.settings.NavigateToSettings(); this.settings.NavigateToPermissions(); }
protected override void OnInit(EventArgs e) { if (Session.GetCurrentUser() == null) { Response.Redirect("~/Views/Login/Login.aspx"); } else { if (PermissionPage.CheckPermissionPageByMenu(System.Web.HttpContext.Current.Request.Url.AbsolutePath)) { Response.Redirect("~/Error/index.html"); } } base.OnInit(e); }