예제 #1
0
        public string CreateToDomain(string domain)
        {
            _browser.Navigate("http://" + Base._config.Env + "." + Base._config.GlobalConfigObject[domain]["Url"] + "/" + Base._config.GlobalConfigObject[domain]["Language"] + "/" + "admin");
            AdminPage adminPage = new AdminPage(_browser);

            adminPage.ClickOnCreatePost();
            var title       = adminPage.GetPostTitle().Split('>')[1];
            var parsedTitle = new string(title.ToCharArray().Where(c => char.IsLetter(c) || c == '-').ToArray()).Replace("posts", "").Replace("-", " ");

            Title = parsedTitle.Trim();
            return(parsedTitle);
        }
예제 #2
0
        public string Create()
        {
            _browser.Navigate(Base._config.Url + "/" + Base._config.ConfigObject.Language + "/" + "admin");
            AdminPage adminPage = new AdminPage(_browser);

            adminPage.ClickOnCreatePost();
            var title       = adminPage.GetPostTitle().Split('/').Last();
            var parsedTitle = new string(title.ToCharArray().Where(c => char.IsLetter(c) || c == '-').ToArray()).Replace("posts", "").Replace("-", " ");

            Title = parsedTitle.Trim();
            return(parsedTitle);
        }